Changed delete to return deleted object