---
title: "Delete Alignment"
method: DELETE
path: "/api/v3/alignment-projects/{alignment_id}"
tags: ["Alignment Projects"]
---

# Delete Alignment

`DELETE /api/v3/alignment-projects/{alignment_id}`

## Request

- Base URL: `https://api.nugen.in`
- URL: `https://api.nugen.in/api/v3/alignment-projects/{alignment_id}`
- Auth: HTTP bearer

Delete an alignment project permanently.


This endpoint permanently removes an alignment project and its associated data from the system. The aligned model must be undeployed before deletion is allowed.


**Path Parameters:**

- `alignment_id`: Unique identifier of the alignment project to delete


**Returns:**

Success response containing:

- `alignment_id`: ID of the deleted alignment project
- `message`: Confirmation message


**Raises:**

- `400`: If the aligned model is still deployed (must undeploy first)
- `404`: If alignment project not found or doesn't belong to user


**Example Request:**

```json
DELETE /api/v3/alignment/alignment_01k4x9m2p7q3r8c1
Headers: {"Authorization": "Bearer <api_key>"}
```


**Example Response:**

```json
{
  "alignment_id": "alignment_01k4x9m2p7q3r8c1",
  "message": "Alignment project successfully deleted"
}
```


**Warning:**

This action is permanent and cannot be undone. All alignment data, train-time alignment artifacts, and project metadata will be permanently deleted.


**Important:**

Before deleting an alignment project, ensure the associated aligned model is undeployed. Use the undeploy endpoint first if the model is currently deployed.

## Path parameters

- `alignment_id` string, required

## Response `200`

Returns confirmation of successful deletion of the alignment project with the specified ID

- AlignmentProjectDeleteResponse: Confirmation of a permanent alignment project deletion.
  - `alignment_id` string, required: Identifier of the deleted alignment project.
  - `message` string, required: Deletion confirmation message.

## Other responses

- `401`: Invalid API key
- `403`: Authorization header missing or not a Bearer token
- `404`: Resource not found
- `422`: Validation Error

---

[API](https://skmtc.dev/nugen/apis/nugen-intelligence-api.md) - [All operations](https://skmtc.dev/nugen/apis/nugen-intelligence-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nugen/apis/nugen-intelligence-api/revisions/62baa7960a4a?raw)
