untested code for field deletion