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

# Terminate Process

> Terminates a background process by its ID.



## OpenAPI

````yaml api-reference/openapi.json delete /api/bash/process/{pid}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: http://localhost:4242/{computer_name}
    description: Local development server
    variables:
      computer_name:
        default: your-computer-name
        description: Computer name
security: []
paths:
  /api/bash/process/{pid}:
    delete:
      tags:
        - bash
      summary: Terminate Process
      description: Terminates a background process by its ID.
      operationId: terminateProcess
      parameters:
        - name: pid
          in: path
          required: true
          schema:
            type: integer
            title: Pid
      responses:
        '204':
          description: Successfully terminated process
        '404':
          description: Process not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
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

````