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

# Delete a network and all its resources

> Delete a network and cascade delete all associated resources (servers, groups, blueprints, etc.)



## OpenAPI

````yaml https://controller.simplecloud.app/swagger/doc.json delete /v0/networks
openapi: 3.1.0
info:
  contact:
    name: SimpleCloud support
    url: https://discord.simplecloud.app
  description: >-
    JWT sent in Authorization: Bearer <token>. Access depends on the token's
    network membership and permissions. The admin endpoint requires admin
    claims.
  title: SimpleCloud Controller API
  version: '1.0'
servers:
  - url: https://controller.simplecloud.app/
security: []
externalDocs:
  description: ''
  url: ''
paths:
  /v0/networks:
    delete:
      tags:
        - networks
      summary: Delete a network and all its resources
      description: >-
        Delete a network and cascade delete all associated resources (servers,
        groups, blueprints, etc.)
      operationId: delete_network
      parameters:
        - description: Network ID
          in: header
          name: X-Network-ID
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.DeleteNetworkResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
          description: Forbidden
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
          description: Internal Server Error
      security:
        - BearerAuth: []
        - NetworkCredential: []
components:
  schemas:
    models.DeleteNetworkResponse:
      description: Response for deleting a network and all its resources
      properties:
        message:
          example: Network deleted successfully
          type: string
        network_id:
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
      type: object
    models.ErrorResponse:
      description: Generic error response
      properties:
        error:
          type: string
      type: object
  securitySchemes:
    NetworkCredential:
      description: >-
        Network password or signed JWT. Password authentication also requires
        X-Network-ID and grants full access to that network, except the audit
        log. JWT permissions still apply.
      in: header
      name: X-Network-Credential
      type: apiKey

````

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