> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nugen.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Alignment

> 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:**

- `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-xyz789
Headers: {"Authorization": "Bearer <api_key>"}
```


**Example Response:**

```json
{
  "alignment_id": "alignment-xyz789",
  "message": "Alignment project successfully deleted"
}
```


**Warning:**

This action is permanent and cannot be undone. All alignment data, training 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.



## OpenAPI

````yaml https://api.nugen.in/openapi-public.json delete /api/v3/alignment-project/{id}
openapi: 3.1.0
info:
  title: Nugen Intelligence API
  description: 'Nugen Intelligence : Powering Specialized Intelligence At Scale'
  version: 25.4.20
servers: []
security: []
paths:
  /api/v3/alignment-project/{id}:
    delete:
      tags:
        - Alignment Project
      summary: Delete Alignment
      description: >-
        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:**


        - `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-xyz789

        Headers: {"Authorization": "Bearer <api_key>"}

        ```



        **Example Response:**


        ```json

        {
          "alignment_id": "alignment-xyz789",
          "message": "Alignment project successfully deleted"
        }

        ```



        **Warning:**


        This action is permanent and cannot be undone. All alignment data,
        training 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.
      operationId: delete_alignment
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            title: Id
      responses:
        '200':
          description: >-
            Returns confirmation of successful deletion of the alignment project
            with the specified ID
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````