implement the delete action for posts