delete method in rest api