delete entitymanager