remove attribute values when file objects are removed