Instance
Delete Instance
Removes the instance and all of its data. Irreversible operation
DELETE
Delete Instance
Auth:
TokenAccount • Rate-limit: Global (100/min) • Idempotent: yes
Does not accept TokenInstance, an instance cannot ask for its own removal. Use the TokenAccount of the owner account.
Example
Sends aDELETE to the instance path using the TokenAccount. The operation is irreversible: it terminates the whatsmeow session, logs out from WhatsApp and removes every record from the database (settings, webhook, websocket, chatwoot, proxy, S3 and the instance itself).
Success response
200 OK
Path parameters
Name of the instance to delete.
Headers
Your TokenAccount (only the instance owner can delete it).
What happens on delete
- If the instance was connected, RyzeAPI performs a WhatsApp logout (the device disappears from the linked-devices list on the phone).
- Webhooks, WebSocket, Chatwoot integration and settings are removed.
- All instance records are wiped from the database.
- If you had S3 configured, files already uploaded to the bucket are not deleted, manage the bucket separately.
Errors
| HTTP | error.message | When |
|---|---|---|
| 401 | Invalid token | Token missing, invalid or a TokenInstance (not accepted). |
| 404 | Instance not found | Name does not exist. |
| 429 | Rate limit exceeded. Try again later. | More than 100 req/min. |
| 500 | Failed to delete instance: <reason> | Internal failure during teardown. |
Notes
Next
Create a new instance
Provisions a new one in its place, optionally with inline webhook, websocket and chatwoot.
Logout without deleting
If you only want to disconnect from WhatsApp while keeping the instance.