> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conductor.is/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a custom field definition

> Deletes a custom field definition, so QuickBooks stops returning the custom field. Intuit's reference describes this request for private custom fields, and Conductor has confirmed it deletes public ones on QuickBooks Enterprise.

**IMPORTANT**: Deleting a public custom field does not erase its values. QuickBooks keeps them on the records, and a public custom field created later for the same kind of record (customers, vendors, and employees, or items) can show them under its own name. To remove the values for good, clear them with each record type's set-custom-fields endpoint before deleting the definition. A deleted private custom field's values do not come back under another name, but its owner cannot create another custom field with the same name.



## OpenAPI

````yaml DELETE /quickbooks-desktop/custom-field-definitions/{id}
openapi: 3.1.0
info:
  title: Conductor API
  version: 0.0.1
servers:
  - url: https://api.conductor.is/v1
security:
  - BearerAuth: []
paths:
  /quickbooks-desktop/custom-field-definitions/{id}:
    delete:
      summary: Delete a custom field definition
      description: >-
        Deletes a custom field definition, so QuickBooks stops returning the
        custom field. Intuit's reference describes this request for private
        custom fields, and Conductor has confirmed it deletes public ones on
        QuickBooks Enterprise.


        **IMPORTANT**: Deleting a public custom field does not erase its values.
        QuickBooks keeps them on the records, and a public custom field created
        later for the same kind of record (customers, vendors, and employees, or
        items) can show them under its own name. To remove the values for good,
        clear them with each record type's set-custom-fields endpoint before
        deleting the definition. A deleted private custom field's values do not
        come back under another name, but its owner cannot create another custom
        field with the same name.
      parameters:
        - in: header
          name: Conductor-End-User-Id
          schema:
            type: string
            description: The ID of the End-User to receive this request.
            example: end_usr_1234567abcdefg
            x-stainless-naming:
              typescript:
                method_argument: conductorEndUserId
              mcp:
                method_argument: conductorEndUserId
          required: true
          description: The ID of the End-User to receive this request.
        - in: path
          name: id
          schema:
            type: string
            maxLength: 31
            description: >-
              The `id` of the custom field definition, which is its name.
              QuickBooks matches the name without regard to letter case. For a
              private definition, also send its `ownerId`; without it, the
              request acts on the public definition with this name.
            example: Customer Rating
          required: true
          description: >-
            The `id` of the custom field definition, which is its name.
            QuickBooks matches the name without regard to letter case. For a
            private definition, also send its `ownerId`; without it, the request
            acts on the public definition with this name.
        - in: query
          name: ownerId
          schema:
            description: >-
              The owner of the custom field. Defaults to `"0"`, the owner of
              public custom fields, which QuickBooks users define and see. Any
              other owner is an application's GUID in braces, such as
              `"{6B063959-81B0-4622-85D6-F548C8CCB517}"`, whose private custom
              fields appear only in requests that name it.
            example: '0'
            default: '0'
            type: string
          description: >-
            The owner of the custom field. Defaults to `"0"`, the owner of
            public custom fields, which QuickBooks users define and see. Any
            other owner is an application's GUID in braces, such as
            `"{6B063959-81B0-4622-85D6-F548C8CCB517}"`, whose private custom
            fields appear only in requests that name it.
      responses:
        '200':
          description: >-
            Returns a confirmation of the deletion with the name of the deleted
            custom field definition.
          headers:
            Conductor-Request-Id:
              required: true
              description: The unique identifier for this API request.
              schema:
                type: string
                description: The unique identifier for this API request.
                example: req_1234567abcdefg
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: >-
                      The identifier of the deleted custom field definition,
                      which is its `name`.
                    example: Customer Rating
                  objectType:
                    description: >-
                      The type of object. This value is always
                      `"qbd_custom_field_definition"`.
                    example: qbd_custom_field_definition
                    type: string
                    const: qbd_custom_field_definition
                  ownerId:
                    type: string
                    description: The owner of the deleted custom field definition.
                    example: '0'
                  name:
                    type: string
                    description: The name of the deleted custom field definition.
                    example: Customer Rating
                  deleted:
                    type: boolean
                    description: Indicates whether the custom field definition was deleted.
                    example: true
                required:
                  - id
                  - objectType
                  - ownerId
                  - name
                  - deleted
                additionalProperties: false
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Conductor from 'conductor-node';


            const conductor = new Conductor({
              apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
            });


            const customFieldDefinition = await
            conductor.qbd.customFieldDefinitions.delete('Customer Rating', {
              conductorEndUserId: 'end_usr_1234567abcdefg',
            });


            console.log(customFieldDefinition.id);
        - lang: Python
          source: >-
            import os

            from conductor import Conductor


            conductor = Conductor(
                api_key=os.environ.get("CONDUCTOR_SECRET_KEY"),  # This is the default and can be omitted
            )

            custom_field_definition =
            conductor.qbd.custom_field_definitions.delete(
                id="Customer Rating",
                conductor_end_user_id="end_usr_1234567abcdefg",
            )

            print(custom_field_definition.id)
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Conductor secret key using Bearer auth (e.g., `"Authorization:
        Bearer {{YOUR_SECRET_KEY}}"`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.