Hi Craig, Am Freitag, den 18.04.2008, 10:07 -0500 schrieb Craig L. Ching: > Hi, > > Just getting started with sling and I'm wondering what's the right way > to clear out the JCR repository between runs if I want to reinitialize > my content. I tried just deleting the 'sling' directory, but after > startup I just get "empty repository" or something like that.
I am not exactly clear, what you mean by "clearing JCR Repository". If you just want to get an empty JCR repository, you can in fact remove the jackrabbit directory inside the sling directory. This causes a new repository to be created on the next startup, which is (almost) empty. I would assume, that this is what you want to achieve. Of course this method removes all content you had in the repository before clearing. If you want to just selective remove content from the repository, you might try connecting to the repository with WebDAV and just remove the folders of interest. Alternatively you might want to get the CRX Feature for Eclipse from http://www.day.com/eclipse/ which allows you to connect to the repository from within Eclipse and delete whatver content you want deleted. Hope this helps. Regards Felix
