Delete tasks before delete category