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

# Delete Use Case

> Soft delete a Use Case by OId. The use case will be marked as deleted but not permanently removed.



## OpenAPI

````yaml delete /api/v2/use-case/delete
openapi: 3.0.0
info:
  version: 1.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/use-case/delete:
    delete:
      tags:
        - Use Case
      summary: Delete Use Case
      description: >-
        Soft delete a Use Case by OId. The use case will be marked as deleted
        but not permanently removed.
      operationId: deleteUseCase
      parameters:
        - schema:
            type: string
            description: Use Case OId
          required: true
          name: oId
          in: query
      responses:
        '200':
          description: Deleted use case data
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  oId:
                    type: string
                    minLength: 1
                    description: The ID of the use case
                    example: uc_1234
                  createdAt:
                    type: string
                    description: The date and time the use case was created
                    example: '2021-01-01'
                  updatedAt:
                    type: string
                    nullable: true
                    description: The date and time the use case was updated
                    example: '2021-01-01'
                  deletedAt:
                    type: string
                    nullable: true
                    description: The date and time the use case was deleted
                    example: '2021-01-01'
                  archivedAt:
                    type: string
                    nullable: true
                    description: The date and time the use case was archived
                    example: '2021-01-01'
                  name:
                    type: string
                    nullable: true
                    description: The name of the use case
                    example: Use Case Name
                  internalName:
                    type: string
                    nullable: true
                    description: The internal name of the use case
                    example: Use Case Internal Name
                  description:
                    type: string
                    nullable: true
                    description: The description of the use case
                    example: Use Case Description
                  primaryUrl:
                    type: string
                    nullable: true
                    description: The primary URL of the use case
                    example: https://www.use-case.com
                  active:
                    type: boolean
                    default: true
                    description: Whether the use case is active and can be used
                    example: true
                  data:
                    $ref: '#/components/schemas/UseCaseData'
                  user:
                    type: object
                    properties:
                      oId:
                        type: string
                        nullable: true
                        description: User OId
                      firstName:
                        type: string
                        nullable: true
                        description: The first name of the user who created the use case
                        example: John
                      lastName:
                        type: string
                        nullable: true
                        description: The last name of the user who created the use case
                        example: Doe
                  workspace:
                    type: object
                    properties:
                      oId:
                        type: string
                        nullable: true
                        description: Workspace OId
                  scenarios:
                    type: array
                    nullable: true
                    items:
                      type: string
                    description: Scenarios
                  desiredOutcomes:
                    type: array
                    nullable: true
                    items:
                      type: string
                    description: Desired Outcomes
                required:
                  - _metadata
                  - oId
                  - createdAt
                  - user
                  - workspace
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Use Case not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          description: API usage
          example: 0
        requestId:
          type: string
          description: Request ID
          example: requestId
        message:
          type: string
          description: Message
          example: message
        timestamp:
          type: string
          description: Timestamp
          example: '2021-01-01T00:00:00.000Z'
      required:
        - requestId
        - timestamp
    UseCaseData:
      type: object
      nullable: true
      properties:
        summary:
          type: string
          nullable: true
          description: Summary
        scenarios:
          type: array
          nullable: true
          items:
            type: string
          description: Scenarios
        desiredOutcomes:
          type: array
          nullable: true
          items:
            type: string
          description: Desired Outcomes
        businessDrivers:
          type: array
          nullable: true
          items:
            type: string
          description: Business Drivers
        strategicImpact:
          type: array
          nullable: true
          items:
            type: string
          description: >-
            The strategic, business-level benefit realized when this use case is
            solved well: quantifiable impact on revenue, cost, risk, and/or
            efficiency, and the broader value to the company.
        customFields:
          $ref: '#/components/schemas/CustomDataFields'
    CustomDataFields:
      type: array
      items:
        $ref: '#/components/schemas/CustomDataFieldItem'
    CustomDataFieldItem:
      type: object
      properties:
        title:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - title
        - value
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````