For testing you can use tmp provider. This provider will delete all the files and folders on repository shutdown. The providers configuration file (providers.xml) must be in the classpath. repository.xml Example: