I updated a subcategory as a main category by
1- changing Parent category to None https://imgur.com/a/ykVG9PG
2- cleared the cache on that category, on the former parent category, on tasks page
I also wanted to make the previously top menu item invisible by unticking "Include in top menu".
However now the category is removed as subcategory but not shown as a main category, also the unticked category remains in the top menu.
What else should I do to make sure the changes are reflected?