> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DeleteDeliveryProfile # Package: shippingDelivery # Namespace: DeliveryProfiles # Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/delete-delivery-profile.md ## Permission Scopes: Manage eCommerce - all permissions: SCOPE.DC-ECOM-MEGA.MANAGE-ECOM ## Introduction Deletes a delivery profile. Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone. The default delivery profile can't be deleted because every site requires one for core delivery functionality. --- ## REST API ### Schema ``` Method: deleteDeliveryProfile Description: Deletes a delivery profile. Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone. The default delivery profile can't be deleted because every site requires one for core delivery functionality. URL: https://www.wixapis.com/ecom/v1/delivery-profiles/{deliveryProfileId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: deliveryProfileId Method parameters: param name: deliveryProfileId | type: none | required: true Return type: DeleteDeliveryProfileResponse EMPTY-OBJECT {} ``` ### Examples ### Delete delivery profile Deletes a delivery profile by ID ```curl curl -X DELETE \ 'https://www.wixapis.com/ecom/v1/delivery-profiles/8046df3c-7575-4098-a5ab-c91ad8f33c47' \ -H 'Authorization: ' \ -H 'Content-Type: application/json' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.shippingDelivery.DeliveryProfiles.deleteDeliveryProfile(deliveryProfileId) Description: Deletes a delivery profile. Permanently deletes the delivery profile and its delivery regions and carrier configurations. Delivery regions are unique to each profile and aren't shared across profiles. This action can't be undone. The default delivery profile can't be deleted because every site requires one for core delivery functionality. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: deliveryProfileId Method parameters: param name: deliveryProfileId | type: string | description: Delivery profile GUID. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### Delete delivery profile ```javascript import { deliveryProfile } from "@wix/ecom"; async function deleteDeliveryProfile() { await deliveryProfile.deleteDeliveryProfile( "8046df3c-7575-4098-a5ab-c91ad8f33c47" ); } ``` ### deleteDeliveryProfile (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { deliveryProfile } from '@wix/ecom'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { deliveryProfile }, // Include the auth strategy and host as relevant }); async function deleteDeliveryProfile(deliveryProfileId) { const response = await myWixClient.deliveryProfile.deleteDeliveryProfile(deliveryProfileId); }; ``` ---