delete post operation using restful api