function delete post, with delete also the category of its