---
title: "Delete a sampler if permissions allow it."
method: POST
path: "http://localhost:8000/{project_id}/samplers/{sampler_id}/delete"
tags: ["samplers"]
---

# Delete a sampler if permissions allow it.

`POST http://localhost:8000/{project_id}/samplers/{sampler_id}/delete`

Delete a sampler if permissions allow it.

If the sampler was created with allowing the creation of new boundary nodes,
these nodes are removed by default if they have not been modified since
their insertion. This can optionally be disabled using the
<delete_created_nodes> parameter.

## Path parameters

- `project_id` string, required
- `sampler_id` string, required

## Response `201`

Created

## Changes

- **2020-06-24** `80927abb02ba` — 1 info
  - endpoint added
- **2019-08-15** `2b6c094737cc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/catmaid/apis/catmaid-api/changes/http:/localhost:8000/:project_id/samplers/:sampler_id/delete/post.md)

---

[API](https://skmtc.dev/catmaid/apis/catmaid-api.md) · [All operations](https://skmtc.dev/catmaid/apis/catmaid-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/catmaid/catmaid-api/revisions/adc1c7c5eefe/schema)
