delete filesystem file only after we actually delete file record in DB. That's important for safety to not break data integrity in case DB statement fails for some reason. It's not that bad if we have orphaned filesystem file, but having orphaned DB record is not acceptable.
cleanupDrafts
method inFile
data modellinked
status implementation