Remove files from db when deleting them.