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

# Delete Server

> Delete a server. Its system disk goes with it unless it was kept at launch



## OpenAPI

````yaml /api/openapi.json delete /servers/{server_id}
openapi: 3.1.0
info:
  description: Programmatic access to Infinite Compute GPU servers, volumes and usage.
  title: Infinite Compute API
  version: v1
servers:
  - url: https://{console}/api/public/v1
    description: Your console address is in your welcome email
    variables:
      console:
        default: your-console-address
security: []
paths:
  /servers/{server_id}:
    delete:
      tags:
        - Servers
      summary: Delete Server
      description: >-
        Delete a server. Its system disk goes with it unless it was kept at
        launch
      operationId: delete_server_servers__server_id__delete
      parameters:
        - in: path
          name: server_id
          required: true
          schema:
            maxLength: 64
            title: Server Id
            type: string
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Server'
          description: Successful Response
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Error
      security:
        - ApiKey: []
components:
  schemas:
    Server:
      properties:
        addresses:
          default: []
          items:
            $ref: '#/components/schemas/ServerAddress'
          title: Addresses
          type: array
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Created At
        error_reason:
          anyOf:
            - type: string
            - type: 'null'
          description: Set when status is error
          title: Error Reason
        id:
          title: Id
          type: string
        image_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The image the system disk came from
          title: Image Id
        name:
          title: Name
          type: string
        server_type:
          anyOf:
            - type: string
            - type: 'null'
          description: The server type's name
          title: Server Type
        site:
          anyOf:
            - $ref: '#/components/schemas/Site'
            - type: 'null'
        ssh_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Ssh Key
        status:
          description: building, active, busy, stopped, parked, deleting, error
          title: Status
          type: string
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Updated At
        volume_ids:
          default: []
          description: Attached volumes, system disk included
          items:
            type: string
          title: Volume Ids
          type: array
      required:
        - id
        - name
        - status
      title: Server
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ServerAddress:
      properties:
        ip:
          title: Ip
          type: string
        network:
          title: Network
          type: string
        version:
          title: Version
          type: integer
      required:
        - network
        - ip
        - version
      title: ServerAddress
      type: object
    Site:
      properties:
        id:
          description: >-
            Stable site id; GET /server-types lists the ones your project can
            use
          title: Id
          type: string
        name:
          description: Display name of the site
          title: Name
          type: string
      required:
        - id
        - name
      title: Site
      type: object
    ErrorDetail:
      properties:
        code:
          description: Machine-readable error code, e.g. not_found
          title: Code
          type: string
        message:
          description: What went wrong, for people
          title: Message
          type: string
        request_id:
          description: Quote this when contacting support
          title: Request Id
          type: string
      required:
        - code
        - message
        - request_id
      title: ErrorDetail
      type: object
  securitySchemes:
    ApiKey:
      description: 'An API key from the console: Authorization: Bearer ic_ck_...'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.