adopt same pattern for delete as post and put