On the admin sidebar, go to Catalog > Products.
Go to product grid.
On that product line, click Edit under the Action column.
Select products to delete, then click on Action > Delete.
On the admin sidebar, go to Catalog > Categories.
On Category page
Edit the category setting then click on Save to save the changes.
On the category detail page, click on Delete.