> 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 # DeleteAddOn # Package: services # Namespace: AddOnsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/delete-add-on.md ## Permission Scopes: Manage Bookings: SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS ## Introduction Deletes an add-on and removes it from all add-on groups. --- ## REST API ### Schema ``` Method: deleteAddOn Description: Deletes an add-on and removes it from all add-on groups. URL: https://www.wixapis.com/addons/v1/add-ons/{addOnId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: addOnId Method parameters: param name: addOnId | type: none | required: true Return type: DeleteAddOnResponse EMPTY-OBJECT {} ``` ### Examples ### Delete AddOn Deletes a AddOn ```curl curl -X 'DELETE' \ 'https://manage.wix.com/_api/add-ons-service/v1/add-ons/3b6225b5-b52e-4bf6-a16b-2669d9aa4b47?addOnId=3b6225b5-b52e-4bf6-a16b-2669d9aa4b47' \ -H 'authorization: ' \ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.services.AddOnsService.deleteAddOn(addOnId) Description: Deletes an add-on and removes it from all add-on groups. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: addOnId Method parameters: param name: addOnId | type: string | description: GUID of the add-on to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteAddOn ```javascript import { addOns } from '@wix/bookings'; async function deleteAddOn(addOnId) { const response = await addOns.deleteAddOn(addOnId); }; ``` ### deleteAddOn (with elevated permissions) ```javascript import { addOns } from '@wix/bookings'; import { auth } from '@wix/essentials'; async function myDeleteAddOnMethod(addOnId) { const elevatedDeleteAddOn = auth.elevate(addOns.deleteAddOn); const response = await elevatedDeleteAddOn(addOnId); } ``` ### deleteAddOn (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 { addOns } from '@wix/bookings'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { addOns }, // Include the auth strategy and host as relevant }); async function deleteAddOn(addOnId) { const response = await myWixClient.addOns.deleteAddOn(addOnId); }; ``` ---