---
title: "Delete a deploy target"
method: DELETE
path: "/projects/{projectId}/deploy-targets/{targetId}"
tags: ["Deploys"]
---

# Delete a deploy target

`DELETE /projects/{projectId}/deploy-targets/{targetId}`

## Request

- Base URL: `https://api.grapesjs.com/v1`
- URL: `https://api.grapesjs.com/v1/projects/{projectId}/deploy-targets/{targetId}`
- Auth: HTTP bearer

Permanently removes a deployment destination, including its external project, primary custom-domain association, and deployment history. This action cannot be undone.

## Response `200`

Deploy target deleted successfully

- DeleteDeployTargetResult
  - `success` boolean, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `404`: Resource not found
- `500`: Server error

---

[API](https://skmtc.dev/grapesjs/apis/studio-platform-api.md) - [All operations](https://skmtc.dev/grapesjs/apis/studio-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grapesjs/apis/studio-platform-api/revisions/acc4ffe35e2d?raw)
