delete prints exactly what will change and asks once, and the answer defaults to no. Then it undoes what deploy set up, in order. A webhook, number or inbox that will not release stops delete before the function goes, with exit 1; the progress is kept under deployed, so a rerun resumes.
- Each wired artifact’s webhook goes back to its pre-deploy value, and is left alone if something else repointed it. One already deleted outside the CLI is reported as gone and skipped. One that had no webhook before the agent, and whose API refuses a blank one (a Call Control application does), is reported as still pointing at the agent, with where to clear it, and
deletegoes on. - Each phone number goes back where it was, and the artifacts
deploycreated for it are deleted, not restored. - The inbox and the webhook
deploycreated for email are removed. - The function is deleted.
- The actor type is deleted once the function’s teardown has settled.
deleteretries for about two minutes. A type still there after that endsdeletewith exit 1, naming it and thetelnyx-edge actors delete <type> --yescommand; the function is gone by then, anddeployedand.telnyx/are already cleared.
agent.json keeps its numbers, channels and secret names and loses deployed; .telnyx/ is removed, since the next deploy writes it again and registers the agent afresh. --json carries generatedRemoved: ".telnyx". Deploy and Operate shows the output.