---
title: "Delete a goal"
method: DELETE
path: "/api/sites/{siteId}/goals/{goalId}"
tags: ["Goals"]
---

# Delete a goal

`DELETE /api/sites/{siteId}/goals/{goalId}`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/sites/{siteId}/goals/{goalId}`
- Auth: HTTP bearer

## Path parameters

- `siteId` string, uuid, required
- `goalId` string, uuid, required

## Response `204`

Goal deleted

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid/expired credential
- `403`: Credential lacks permission
- `404`: Resource not found
- `500`: Internal service error

---

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