Implemented delete action for posts.