Delete object with rest call.