---
title: "Delete Field Definitions"
method: DELETE
path: "/collections/{collectionId}/schema"
tags: ["Schema"]
---

# Delete Field Definitions

`DELETE /collections/{collectionId}/schema`

## Request

- Base URL: `https://data.lucid.app`
- URL: `https://data.lucid.app/collections/{collectionId}/schema`
- Auth: OAuth 2
  - Authorization code: `https://lucid.app/oauth2/authorize`
  - Token URL: `https://api.lucid.co/oauth2/token` scopes: `data-service.admin`

This endpoint removes only the field definitions provided in the query parameter. The fields in the query parameter must belong to the collection specified. The results of this deletion cannot be undone. The deletion will only occur if the user has access to the data source.
NOTE: If the entire schema is removed then all of the values of each data item are also removed.

## Path parameters

- `collectionId` integer, required

## Query parameters

- `fields` string[], required

## Response `200`

OK

---

[API](https://skmtc.dev/lucid/apis/lucid-data-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-data-api/revisions/c14ed29dbeab?raw)
