We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys, long time no seen. I am using a processing program that uses XML DB and makes an intensive use of the XML type. But what I don't see how to do in the reference is how I delete an XML physic (Meaning not the object but the file) file. For example, I created a XML, modified it and saved with saveXML() into guy.xml. I want to delete that user from the DB(For each user I create a file, some advice here about storing it all in a single file is helpful too), I remove the child in the index that makes reference to it, but I need also to wipe it out from non-existent user residual files that just disturb.
Thanks for your time, javier
Answers
The Java File class is what you look for.
But it won't work in javascript. I am asking of processing code
I've found this question about it:
https://stackoverflow.com/questions/2665832/deleting-files-in-javascript
You don't mention JavaScript in your original message. Partial information can lead to partially correct answers...
Beside, in JavaScript alone, you just cannot delete file on user's disk! Imagine the chaos if any random page could access your system and delete the files it wants...
K thanks. Answered