Environment

environment.deleted

An environment was deleted.

When it fires

After DeleteEnvironmentService succeeds. The environment's variables and versions cascade-soft-delete; they do not emit their own *.deleted events for the cascade.

Payload

ts
{
    type: 'environment.deleted',
    data: {
        environment: {
            id: string
            name: string
            slug: string
            projectId: string
        }
    }
}

Example

json
{
    "type": "environment.deleted",
    "data": {
        "environment": {
            "id": "0192a1b2-c3d4-7000-8000-000000000020",
            "name": "production",
            "slug": "production",
            "projectId": "0192a1b2-c3d4-7000-8000-000000000010"
        }
    }
}