verifying the object exists, then deleting it