> 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 # DeleteCustomField # Package: customFields # Namespace: CustomFields # Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/custom-fields/custom-fields/delete-custom-field.md ## Permission Scopes: Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS ## Introduction Deletes a custom field and removes the corresponding column from the [Contact List](https://support.wix.com/en/article/wix-contacts-managing-your-contact-list) display. The custom field is no longer suggested when adding custom fields. --- ## REST API ### Schema ``` Method: deleteCustomField Description: Deletes a custom field and removes the corresponding column from the [Contact List](https://support.wix.com/en/article/wix-contacts-managing-your-contact-list) display. The custom field is no longer suggested when adding custom fields. URL: https://www.wixapis.com/members/v1/custom-fields/{id} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: id, revision Method parameters: param name: id | type: none | required: true query param name: revision | type: revision | description: Revision number. | required: true Return type: DeleteCustomFieldResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a custom field ```curl curl -X DELETE \ https://www.wixapis.com/members/v1/custom-fields/2b8a8b49-356c-45c2-93cd-0f1fa4ec4d3e \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: ' -d '{ "id": "2b8a8b49-356c-45c2-93cd-0f1fa4ec4d3e", "revision": "1" }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.customFields.CustomFields.deleteCustomField(_id, revision) Description: Deletes a custom field and removes the corresponding column from the [Contact List](https://support.wix.com/en/article/wix-contacts-managing-your-contact-list) display. The custom field is no longer suggested when adding custom fields. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: _id, revision Method parameters: param name: _id | type: string | description: GUID of the custom field to delete. | required: true param name: revision | type: string | description: Revision number. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteCustomField ```javascript import { customFields } from '@wix/members'; async function deleteCustomField(_id,revision) { const response = await customFields.deleteCustomField(_id,revision); }; ``` ### deleteCustomField (with elevated permissions) ```javascript import { customFields } from '@wix/members'; import { auth } from '@wix/essentials'; async function myDeleteCustomFieldMethod(_id,revision) { const elevatedDeleteCustomField = auth.elevate(customFields.deleteCustomField); const response = await elevatedDeleteCustomField(_id,revision); } ``` ### deleteCustomField (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 { customFields } from '@wix/members'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { customFields }, // Include the auth strategy and host as relevant }); async function deleteCustomField(_id,revision) { const response = await myWixClient.customFields.deleteCustomField(_id,revision); }; ``` ---