Deleting files from the File Manager

Permalink
Is there not anything in the API to programatically search for and delete files from the File Manager, by file name or by set? I'm writing a job that does a file sync between a path in the local file system and the File Manager, which involves removing outdated files.

landollweb
 
landollweb replied on at Permalink Best Answer Reply
landollweb
Found it - I was just looking in the wrong place for it. It's a method of the file object described here:

http://www.concrete5.org/documentation/developers/files/files-and-f...

Also found one working usage example in this forum thread:

http://www.concrete5.org/community/forums/customizing_c5/delete-fil...