Spaces method and path for this operation:
delete /s/{space_id}/api/apm/sourcemaps/{id}
Refer to Spaces for more information.
Delete a previously uploaded source map. You must have all Kibana privileges for the APM and User Experience feature.
Headers
-
The version of the API to use
Value is
2023-10-31. Default value is2023-10-31. -
A required header to protect against CSRF attacks
DELETE
/api/apm/sourcemaps/{id}
curl -X DELETE "http://localhost:5601/api/apm/sourcemaps/apm:foo-1.0.0-644fd5a9" \
-H 'Content-Type: application/json' \
-H 'kbn-xsrf: true' \
-H 'Authorization: ApiKey ${YOUR_API_KEY}'
Response examples (200)
An example of a successful response from `DELETE /api/apm/sourcemaps/{id}`. The response body is intentionally empty.
{
"$ref": "#/components/examples/APM_UI_source_maps_delete_200_response1"
}
Response examples (400)
An example of a 400 Bad Request response, returned when the request payload or query parameters fail validation.
{
"error": "Bad Request",
"message": "[request body]: expected value of type [string] but got [undefined]",
"statusCode": 400
}
Response examples (401)
An example of a 401 Unauthorized response, returned when the request is missing valid authentication credentials.
{
"error": "Unauthorized",
"message": "[security_exception]: missing authentication credentials for REST request",
"statusCode": 401
}
Response examples (403)
An example of a 403 Forbidden response, returned when the authenticated user lacks the required APM and User Experience privileges.
{
"error": "Forbidden",
"message": "Insufficient privileges to perform this action. The APM and User Experience feature requires `all` privileges.",
"statusCode": 403
}
Response examples (500)
An example of a 500 Internal Server Error response, returned when an unexpected error occurs while processing the request.
{
"error": "Internal Server Error",
"message": "An internal server error occurred. Check the Kibana server logs for details.",
"statusCode": 500
}
Response examples (501)
An example of a 501 Not Implemented response, returned when the source map feature is not available on the current deployment.
{
"error": "Not Implemented",
"message": "Not Implemented",
"statusCode": 501
}