# Custom field deletion

**URL:** <https://community.servicem8.com/t/custom-field-deletion/1017>\
**Category:** API & SDK\
**Created:** [February 6, 2018, 12:07pm UTC](https://community.servicem8.com/t/custom-field-deletion/1017 "2018-02-06T12:07:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [February 6, 2018, 12:07pm UTC](https://community.servicem8.com/t/custom-field-deletion/1017/1 "2018-02-06T12:07:03Z")

</div>

**Originally posted by Joe Beaver**

I’m trying to delete a custom field via the API but it keeps returning an “Invalid UUID” message.

I see the custom field when I do a GET request, then I copy/paste the UUID into the delete request. I have tried the following commands:

`curl --request DELETE --url https://api.servicem8.com/custom_fields_1.0 --data UUID="xxx"`

and

`curl --request DELETE --url https://api.servicem8.com/custom_fields_1.0 --data '{"uuid":"xxx"}'`

Both return the error `{"errorCode":100,"message":"Invalid UUID"}` even though I am copying/pasting the UUID directly from the GET response.

Is this a bug or am I doing something wrong?

Cheers
