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:
There are several thereads on this that may be interesting for you to read:
https://forum.mendix.com/link/questions/89975
https://forum.mendix.com/link/questions/103132