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

- `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, 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-projects/{alignment_id}
openapi: 3.1.0
info:
  title: Nugen Intelligence API
  description: >+
    Nugen Intelligence: Powering Specialized Intelligence At Scale.


    **Need an API key?** Sign up, log in to the platform and generate an API
    key.


    **Need help?** Sign up, log in to the platform and raise a support ticket.


    **What this API does.** Align models to your domain corpus and run them with

    confidence. Train-time alignment builds domain-aligned adaptors through

    proprietary methods spanning pre-training, supervised and reinforcement

    stages. Inference-time alignment quantifies uncertainty across the full

    generation trajectory, producing confidence scores and keeping every

    response on domain.


    **Workflow.** Upload documents, create or generate a benchmark, create an

    alignment project, receive an aligned model id. That one id serves chat

    completions, completions, embeddings and reranking, and its embeddings carry

    your domain's representation space, making retrieval domain aware. You
    define the success

    criteria for your domain; the platform handles the deep learning, the GPUs

    and the data preparation.


    **Authentication.** Every endpoint requires an API key sent as a Bearer
    token:

    `Authorization: Bearer <api_key>`.

  contact:
    name: Nugen Intelligence - Customer Support
    url: https://nugen.in/signup
    email: support@nugen.in
  version: 25.4.20
servers:
  - url: https://api.nugen.in
    description: Production
security: []
paths:
  /api/v3/alignment-projects/{alignment_id}:
    delete:
      tags:
        - General
      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:**


        - `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,
        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: alignment_projects_delete
      parameters:
        - name: alignment_id
          in: path
          required: true
          schema:
            type: string
            title: Alignment Id
      responses:
        '200':
          description: >-
            Returns confirmation of successful deletion of the alignment project
            with the specified ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAlignmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DeleteAlignmentResponse:
      properties:
        alignment_id:
          type: string
          title: Alignment Id
          description: Identifier of the deleted alignment project.
        message:
          type: string
          title: Message
          description: Deletion confirmation message.
      type: object
      required:
        - alignment_id
        - message
      title: DeleteAlignmentResponse
      description: Confirmation of a permanent alignment project deletion.
    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

````