wip-backup-manager
Version:
This utility enables backup & restore of Kentico Kontent projects
17 lines (13 loc) • 414 B
text/typescript
import { CleanService } from 'src';
const run = async () => {
const cleanService = new CleanService({
onDelete: item => {
// called when any content is deleted
console.log(`Deleted: ${item.title} | ${item.type}`);
},
projectId: 'targetProjectId',
apiKey: 'targetProjectApiKey'
});
await cleanService.cleanAllAsync();
};
run();