# Delete an export column preset

```http
DELETE https://secure.yoprint.com/v1/api/store/{team_slug}/data_export/presets/{presetId}
```

- API version: v1
- Operation ID: `v1_public_data_export_presets_delete`
- Section: Imports and exports › [Data exports](https://developer.yoprint.com/reference/data-exports.md)
- Web page: https://developer.yoprint.com/reference/data-exports/v1-data-export-presets-delete/
- Authentication: `Authorization: Bearer YOUR_API_KEY`

Deletes a preset for good. You can delete your own personal presets. Only the team owner can delete a shared team preset. Answers `204` with an empty body.

## Permission

Your own personal presets: you. Shared team presets: the team owner only.

## Path parameters

- `team_slug` (string, required): Your team slug, shown as Team ID next to your API key in Profile. Example `your-team`.
- `presetId` (string, required): The preset's `id`, from the presets list. Example `ZUFZpcm8jcw4J0`.

## Request body

This operation takes no request body.

### Example request

```bash
curl -X DELETE 'https://secure.yoprint.com/v1/api/store/your-team/data_export/presets/ZUFZpcm8jcw4J0' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'X-Yoprint-Decimal-Format: exact-v1'
```

## Response

`204` Deleted. The body is empty.

No response body.

## Errors

- `401` The API key is missing or wrong (`unauthenticated`).
- `403` A shared preset and you are not the team owner (`team_default_forbidden`), or another member's personal preset (`preset_forbidden`, "You can only remove your own presets.").
  - When: It is a shared preset and you are not the team owner (`team_default_forbidden`, "Only the team owner can remove a shared preset."), or it is another member's personal preset (`preset_forbidden`, "You can only remove your own presets."). Fix: Delete only your own presets, or ask the team owner.
- `404` Not found. `page_not_found`: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's. `code: null`, with a message that starts "No query results for": there is no record with that id.
  - When: No preset of this team has this id. Fix: Use an `id` from the presets list.

## Notes

- The team owner can't delete another member's personal preset either.

## Related

- [List export column presets](https://developer.yoprint.com/reference/data-exports/v1-data-export-presets.md): `GET /v1/api/store/{team_slug}/data_export/presets`
