> 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 # DeleteCustomFieldApplication # Package: customFields # Namespace: CustomFieldApplications # Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/custom-fields/custom-field-applications/delete-custom-field-application.md ## Permission Scopes: Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS ## Introduction Deletes a custom field application. When you delete the application, the field is automatically applied to all members. --- ## REST API ### Schema ``` Method: deleteCustomFieldApplication Description: Deletes a custom field application. When you delete the application, the field is automatically applied to all members. URL: https://www.wixapis.com/members/v1/custom-fields-applications/{customFieldId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: customFieldId Method parameters: param name: customFieldId | type: none | required: true Return type: DeleteCustomFieldApplicationResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a custom field application ```curl curl -X DELETE \ https://www.wixapis.com/members/v1/members/custom-fields-applications/4e4b1840-3833-4dbd-93d1-b2c9a33caa7d \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.customFields.CustomFieldApplications.deleteCustomFieldApplication(customFieldId) Description: Deletes a custom field application. When you delete the application, the field is automatically applied to all members. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: customFieldId Method parameters: param name: customFieldId | type: string | description: GUID of the custom field with an application to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteCustomFieldApplication ```javascript import { customFieldApplications } from '@wix/members'; async function deleteCustomFieldApplication(customFieldId) { const response = await customFieldApplications.deleteCustomFieldApplication(customFieldId); }; ``` ### deleteCustomFieldApplication (with elevated permissions) ```javascript import { customFieldApplications } from '@wix/members'; import { auth } from '@wix/essentials'; async function myDeleteCustomFieldApplicationMethod(customFieldId) { const elevatedDeleteCustomFieldApplication = auth.elevate(customFieldApplications.deleteCustomFieldApplication); const response = await elevatedDeleteCustomFieldApplication(customFieldId); } ``` ### deleteCustomFieldApplication (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 { customFieldApplications } from '@wix/members'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { customFieldApplications }, // Include the auth strategy and host as relevant }); async function deleteCustomFieldApplication(customFieldId) { const response = await myWixClient.customFieldApplications.deleteCustomFieldApplication(customFieldId); }; ``` ---