> 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 # DeleteChatSettings # Package: forms # Namespace: ChatSettingsService # Method link: https://dev.wix.com/docs/api-reference/crm/forms/chat-settings/delete-chat-settings.md ## Permission Scopes: Manage Challenges: SCOPE.CHALLENGES.MANAGE ## Introduction Deletes a chat settings entity. --- ## REST API ### Schema ``` Method: deleteChatSettings Description: Deletes a chat settings entity. URL: https://www.wixapis.com/forms/ai/v1/chat-settings/{chatSettingsId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: chatSettingsId Method parameters: param name: chatSettingsId | type: none | required: true Return type: DeleteChatSettingsResponse EMPTY-OBJECT {} ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.forms.ChatSettingsService.deleteChatSettings(chatSettingsId) Description: Deletes a chat settings entity. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: chatSettingsId Method parameters: param name: chatSettingsId | type: string | description: Chat settings GUID. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteChatSettings ```javascript import { chatSettings } from '@wix/forms'; async function deleteChatSettings(chatSettingsId) { const response = await chatSettings.deleteChatSettings(chatSettingsId); }; ``` ### deleteChatSettings (with elevated permissions) ```javascript import { chatSettings } from '@wix/forms'; import { auth } from '@wix/essentials'; async function myDeleteChatSettingsMethod(chatSettingsId) { const elevatedDeleteChatSettings = auth.elevate(chatSettings.deleteChatSettings); const response = await elevatedDeleteChatSettings(chatSettingsId); } ``` ### deleteChatSettings (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 { chatSettings } from '@wix/forms'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { chatSettings }, // Include the auth strategy and host as relevant }); async function deleteChatSettings(chatSettingsId) { const response = await myWixClient.chatSettings.deleteChatSettings(chatSettingsId); }; ``` ---