Delete properties from the database when files are deleted