Implement Object#delete to reduce duplicate code