[opencms-dev] deleting a file

Thomas Maerz thomasmaerz at gmx.de
Thu Dec 23 17:49:51 CET 2004


bart vandendriessche <bart at nascom.be> writes:

> Apparently, readFileHeader(String file) can't read headers from files
> that are marked as deleted (in the offline project). Can someone then
> tell me what the proper way to delete a resource from the online
> project is ?

Of course you can't delete a resource within the online project.
Did you try the code e. g. as Admin within the offline project?
Create a JSP, insert your code and call the page as Admin in the offline
project.

An alternative is to create a new offline project, switch to the new
project, delete the files and publish the newly created project.

> Is there anybody that has successfully done this before, and could
> they please tell me what I'm doing wrong ? I really need to be able to
> delete stuff

Well, yes, with OpenCms 5.3.6. With 5.0.1 I only had some code that
locked some resources, touched and published them, and it worked.


Regards,
Thomas




More information about the opencms-dev mailing list