-
-
Save douglascrp/8deaca0502e1e2f699320f411fef65d5 to your computer and use it in GitHub Desktop.
Delete all file in archive store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importClass(Packages.org.springframework.web.context.ContextLoader); | |
importClass(Packages.org.alfresco.service.cmr.repository.StoreRef); | |
var ctx = ContextLoader.getCurrentWebApplicationContext(); | |
var archiveService = ctx.getBean("nodeArchiveService"); | |
archiveService.purgeAllArchivedNodes(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment