why livekit trunk gets deleted randomly?
# ask-ai
f
why livekit trunk gets deleted randomly?
t
Thanks for reaching out, Heer. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I hear your frustration about a trunk being deleted randomly. I don’t have any records showing automatic or scheduled deletion of SIP trunks — trunk creation and deletion are done through explicit API/SDK calls — but I can help you investigate. To narrow this down, please share a few details so we can pinpoint the cause: 1. Recent activity • Have there been any recent deployments, CI/CD jobs, or automation/cleanup scripts that touch LiveKit resources? • Any team members who might be running scripts or using the dashboard to manage trunks? 1. Logs and API requests • Can you check your server/API request logs for any
delete_sip_trunk()
or equivalent trunk-deletion calls? If you can share timestamps (or request IDs) around when the trunk disappeared, that will help. 1. Code/SDK usage • Are you creating or managing trunks programmatically (which SDK/language)? If so, which functions/endpoints do you call and do you have any retry or error-handling logic that might call delete on failure? • If you can share a minimal snippet or describe where trunk lifecycle is handled, I can look for common patterns that lead to accidental deletion. 1. Environment and permissions • Is the trunk managed in a shared project or account where other teams or services have write access? • Do you use any scheduled cleanup jobs that remove unused resources? What I can do next • Once you provide timestamps/log entries or the relevant code sections, I’ll help identify likely culprits (accidental API calls, automation, permission issues) and suggest concrete fixes. • If you prefer, start by searching your logs for any DELETE requests to the trunk endpoint around the time it disappeared — share those entries and I’ll interpret them. If you send the details above, I’ll walk you step‑by‑step through how to confirm the source and prevent future random deletions. Sources: Python SDKs | livekit/livekit_composite | DeepWiki | Creating SIP Inbound Trunks and Dispatch Rules with Python SDK | sip | livekit/livekit_composite | DeepWiki | Outbound Calling Script | LiveKit Documentation