When it fires
After DeleteProductService succeeds. Fires for dashboard deletes and v1 API DELETE /products/{slug}.
Deleting a product also deletes its projects, their environments and their variables. Only this one event is emitted for the whole cascade: there is no project.deleted, environment.deleted or variable event behind it, so treat this as "everything under that product is gone" rather than reconciling child events.
Payload
ts
{
type: 'product.deleted',
data: {
product: {
id: string
name: string
slug: string
}
}
}Example
json
{
"type": "product.deleted",
"data": {
"product": {
"id": "0192a1b2-c3d4-7000-8000-000000000005",
"name": "Acme Platform",
"slug": "acme-platform"
}
}
}