---
title: "Delete a macro."
method: DELETE
path: "/v2/macros/{id}"
tags: ["macroManagement"]
---

# Delete a macro.

`DELETE /v2/macros/{id}`

Delete a macro by id.

## Path parameters

- `id` string, required

## Response `204`

Macro was deleted successfully.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/18a824df1e78/schema)
