---
title: "Delete source map"
method: DELETE
path: "/api/apm/sourcemaps/{id}"
tags: ["APM sourcemaps"]
---

# Delete source map

`DELETE /api/apm/sourcemaps/{id}`

**Spaces method and path for this operation:**

<div><span class="operation-verb delete">delete</span>&nbsp;<span class="operation-path">/s/{space_id}/api/apm/sourcemaps/{id}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Delete a previously uploaded source map. You must have `all` Kibana privileges for the APM and User Experience feature.

## Path parameters

- `id` string, required

## Headers

- `elastic-api-version` '2023-10-31', required
- `kbn-xsrf` string, required

## Response `200`

Successful response

- object — The response body is intentionally empty for this endpoint.

## Other responses

- `400` — Bad Request response
- `401` — Unauthorized response
- `403` — Forbidden response
- `500` — Internal Server Error response
- `501` — Not Implemented response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
