delete post can take object and id