delete all relations to posts for the category that you would like to delete