files gets only deleted when a field was not empty