Delete magento 2 products programmatically

This tutorial explains how to delete magento 2 products programmatically. If you want delete all the products in magento 2 at one go use the following code.Here it gives the step by step explanation of how to create the file, connect to magento database externally and delete the products programmatically.

Please click here to refer the tutorial that explains how to create attribute options programmatically and other magento tutorials.

Import magento 2 categories programmatically

This tutorial explains how to import magento 2 categories programmatically. The following code read the categories from the CSV and import the data to magento 2 database programmatically.

Please click to download the sample CSV file. The import script create the categories in the magento admin as shown below.