Clean orphan files from disk

  Hi all, how I can delete or clean physical files from the uploaded path since the disk storage always full.
1 answers

The normal way is to delete the FileDocument object from Mendix, and Mendix will remove the corresponding files from disc.

There are however scenarios where orphaned files can occur:

  • when you remove an entity (NB: entity, not object) from the domain model that inherits from FileDocument
  • if you restore a backup without cleaning the files folder first
  • In older Mendix versions there was a bug leading to orphaned files
  • ...


There are several thereads on this that may be interesting for you to read: