rest-api: return empty object after deleting a record