Implement api/posts/delete