---
title: "Delete custom field definition"
method: DELETE
path: "/cohorts/{cohortId}/custom-fields/{fieldId}"
tags: ["Custom Fields"]
---

# Delete custom field definition

`DELETE /cohorts/{cohortId}/custom-fields/{fieldId}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/custom-fields/{fieldId}`
- Auth: HTTP bearer

Soft delete a custom field definition

## Path parameters

- `cohortId` string, uuid, required
- `fieldId` string, uuid, required

## Response `204`

Custom field deleted successfully

## Other responses

- `401`: Unauthorized
- `404`: Cohort or field not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
