10-16-2011 06:25 PM - edited 03-14-2019 08:43 AM
Hi all, I would like to delete some files in Document Management through scripts. I have tried file.delete() and it returns true. But I still can find the files thorugh the admin page.
Any suggestion? Thanks
Solved! Go to Solution.
10-17-2011 12:19 AM
Hi
There isn't a way to delete a document from the repository - you are probably deleting the local 'disk' copy of the file from the live server, but not the actual source file in the db.
Typically repository documents contain settings etc, so you just overwrite them with new versions from time to time.
What documents do you need to delete?
Aaron
10-17-2011 12:19 AM
Hi
There isn't a way to delete a document from the repository - you are probably deleting the local 'disk' copy of the file from the live server, but not the actual source file in the db.
Typically repository documents contain settings etc, so you just overwrite them with new versions from time to time.
What documents do you need to delete?
Aaron
10-17-2011 02:32 AM
It is some log files. So, the number of files should be increased very fast. I just want to keep around 100 files. Overwrite the files can only release the memory but the file names still exist in the admin web page. Is there any other method?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide