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

# Delete an environment

> Permanently deletes an environment and all associated data.



## OpenAPI

````yaml delete /v1/environments/{id}
openapi: 3.0.0
info:
  title: Revstack API
  version: 1.0.0
  description: >-
    Open Source Billing OS for Developers. The scalable, developer-first billing
    engine with subscriptions, invoicing, usage metering, and entitlements.
servers:
  - url: http://localhost:6900
    description: Revstack API (Local Development)
security: []
paths:
  /v1/environments/{id}:
    delete:
      tags:
        - Environments
      summary: Delete an environment
      description: Permanently deletes an environment and all associated data.
      parameters:
        - schema:
            type: string
            example: env_abc123
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Environment deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                required:
                  - success
                  - message

````