I need to delete the catalogs from Sitecore Commerce by using code. Is there any pipeline or command?
In 9.0.1, you can invoke
IRemoveAllCatalogItemsPipeline to delete all catalogs, categories, and sellable items. You can invoke it using Postman via the
RemoveAllCatalogItems() API. There are no APIs (controllers/pipelines) for deleting individual catalogs.
I believe 9.0.2 introduced UI for deleting sellable items so presumably there are additional pipelines that support that functionality, but I'm not familiar enough with 9.0.2 to help with any details.