> 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 # DeleteTipSettings # Package: tips # Namespace: TipSettingsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/other-services/tips/tip-settings/delete-tip-settings.md ## Permission Scopes: Manage Bookings: SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS ## Introduction Deletes a `tipSettings` object. You can't delete the default `tipSettings` object. --- ## REST API ### Schema ``` Method: deleteTipSettings Description: Deletes a `tipSettings` object. You can't delete the default `tipSettings` object. URL: https://www.wixapis.com/v1/tip-settings/{tipSettingsId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: tipSettingsId Method parameters: param name: tipSettingsId | type: none | required: true Return type: DeleteTipSettingsResponse EMPTY-OBJECT {} Possible Errors: HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: CANNOT_DELETE_DEFAULT_SETTINGS | Description: Can't delete the default `tipSettings` object. ``` ### Examples ### Delete tip settings ```curl curl -X DELETE \ 'https://www.wixapis.com/tip-settings/v1/tip-settings/1338729c-7255-48f1-a66e-f6a8e4b6f9f3' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.tips.TipSettingsService.deleteTipSettings(tipSettingsId) Description: Deletes a `tipSettings` object. You can't delete the default `tipSettings` object. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: tipSettingsId Method parameters: param name: tipSettingsId | type: string | description: GUID of the `tipSettings` object to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} Possible Errors: HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: CANNOT_DELETE_DEFAULT_SETTINGS | Description: Can't delete the default `tipSettings` object. ``` ### Examples ### deleteTipSettings ```javascript import { tipSettings } from '@wix/ecom'; async function deleteTipSettings(tipSettingsId) { const response = await tipSettings.deleteTipSettings(tipSettingsId); }; ``` ### deleteTipSettings (with elevated permissions) ```javascript import { tipSettings } from '@wix/ecom'; import { auth } from '@wix/essentials'; async function myDeleteTipSettingsMethod(tipSettingsId) { const elevatedDeleteTipSettings = auth.elevate(tipSettings.deleteTipSettings); const response = await elevatedDeleteTipSettings(tipSettingsId); } ``` ### deleteTipSettings (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 { tipSettings } from '@wix/ecom'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { tipSettings }, // Include the auth strategy and host as relevant }); async function deleteTipSettings(tipSettingsId) { const response = await myWixClient.tipSettings.deleteTipSettings(tipSettingsId); }; ``` ---