---
title: "Deletar uma meta"
method: DELETE
path: "/api/management/goals/{goal}"
tags: ["goals"]
---

# Deletar uma meta

`DELETE /api/management/goals/{goal}`

Remove a meta por soft delete: ela sai das listagens e só reaparece com `filter[trashed]`, deixa de ser considerada nas metas compostas que a incluíam e seus resultados já apurados ficam inacessíveis, embora não sejam apagados. Não existe endpoint para restaurar uma meta removida.

## Response `204`

Meta removida

- unknown

## Other responses

- `404` — Meta não encontrada

## Changes

- **2026-09-22** `d71b18b1685d` — 2 breaking, 1 warning
  - the response's body became nullable
  - the response's body type changed from `object` to no type for status `204`
  - added the new `goal_model_not_found` enum value to the `message` response property for the response status `404`
- **2026-09-18** `3202abfa17f9` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - added the non-success response with the status `404`
  - added the success response with the status `204`

[Change history](https://skmtc.dev/olie-ai/apis/olie-api/changes/api/management/goals/:goal/delete.md)

---

[API](https://skmtc.dev/olie-ai/apis/olie-api.md) · [All operations](https://skmtc.dev/olie-ai/apis/olie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/olie-ai/apis/olie-api/revisions/d7bda7d32f67?raw)
