We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d360576 + 1a60320 commit d5b3b71Copy full SHA for d5b3b71
nx/blocks/snapshot-admin/utils/utils.js
@@ -95,7 +95,11 @@ export async function deleteSnapshot(name, paths = ['/*']) {
95
}));
96
const firstError = results.find((result) => result.error);
97
if (firstError) return firstError;
98
- return results[0];
+ // once all resources are deleted, delete the snapshot as well
99
+ const opts = { method: 'DELETE' };
100
+ const resp = await daFetch(`${AEM_ORIGIN}/snapshot/${org}/${site}/main/${name}`, opts);
101
+ if (!resp.ok) return formatError(resp);
102
+ return { success: true };
103
}
104
105
export function setOrgSite(suppliedOrg, suppliedSite) {
0 commit comments