tv_delete_alerts
Permanently delete TradingView alerts by ID. Requires confirm=true; each ID is resolved to name and symbol before deletion, and the result confirms gone or still present after 5 seconds.
Instructions
MUTATES: PERMANENTLY delete the given alerts (REST /delete_alerts via the alerts REST handler; there is no undo - a deleted alert can only be re-created by cloning another one). Requires confirm=true. Every id is resolved to name + symbol BEFORE anything is deleted (unknown ids abort the whole call), and the result echoes { id, name, symbol, resolution, active } per deleted alert plus confirmed_gone read back from the server list (the delete can lag seconds; still_present lists ids that were still there after ~5 s). VERIFIED LIVE 2026-09-05: a paused clone (id 7700000006) deleted, confirmed gone in ~1 s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | alert ids to delete, as returned by tv_list_alerts | |
| layout | No | chart layout id, target id, or 0-based index; default = the chart tab that is actually painting | |
| confirm | Yes | must be true - deletion is permanent | |
| expect_layout | No | layout id the tab is expected to show right now; the call refuses if it differs (a tab keeps its target id when the user opens another layout in it) |