Delete product types

To delete a product type, you must perform the following:

  1. Get an instance of the following managers:

    • Ecommerce manager
    • Metadata manager
    • Catalog definition manager
  2. Get the product type.
    For more information, see For developers: Query product types.
  3. Check if there are products associated with the product type.
    If there are products associated with the product type, you must first delete them.
    For more information, see For developers: Products.
  4. Remove the UI definition for the product type.
    To remove the product type from the catalog definition, call the RemoveProductTypeDefinition method of the catalog definition manager and pass the product type as an argument.
  5. Mark the product type for deletion.
    To do this, call the DeleteProduct method of the catalog manager and pass the ID of the product as an argument.
  6. Save the changes.
    To delete the product type, save the changes to the catalog manager.
  7. Adjust the catalog definition for a single product type.
    If after deleting the product type, there is only one created product type left, you must adjust the catalog definition for a single product type. To do this, call the AdjustForSingleProductType method of the catalog definition manager and pass the single product type as an argument.

NOTE: To delete multiple product types, query them and execute the code below for each one of them.

Delete a product type




Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?