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);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)curl --request DELETE \
--url https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Conductor-End-User-Id: <conductor-end-user-id>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Conductor-End-User-Id: <conductor-end-user-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Conductor-End-User-Id", "<conductor-end-user-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}")
.header("Conductor-End-User-Id", "<conductor-end-user-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Conductor-End-User-Id"] = '<conductor-end-user-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "Customer Rating",
"objectType": "qbd_custom_field_definition",
"ownerId": "0",
"name": "Customer Rating",
"deleted": true
}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.
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);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)curl --request DELETE \
--url https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Conductor-End-User-Id: <conductor-end-user-id>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Conductor-End-User-Id: <conductor-end-user-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Conductor-End-User-Id", "<conductor-end-user-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}")
.header("Conductor-End-User-Id", "<conductor-end-user-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conductor.is/v1/quickbooks-desktop/custom-field-definitions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Conductor-End-User-Id"] = '<conductor-end-user-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "Customer Rating",
"objectType": "qbd_custom_field_definition",
"ownerId": "0",
"name": "Customer Rating",
"deleted": true
}Authorizations
Headers
Path Parameters
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.
31"Customer Rating"
Query Parameters
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.
"0"
Response
Returns a confirmation of the deletion with the name of the deleted custom field definition.

