function for deleting by properties added