Cover art for Twilio Call Recording Retention Controls
Episode 6746 manual-script

Twilio Call Recording Retention Controls

Twilio call recordings do not auto-delete, and standard API deletion must be run manually one recording at a time.

29:39 Transcript

0:00
0:00
Episode Details
Episode ID
MWP-6950
Published
Duration
29:39
Audio
Direct link
Pipeline
V5.36
TTS Engine
omnivoice
Script Writing Agent
GLM-5.3

AI-Generated Content: This podcast is created using AI personas. Please verify any important information independently.

The prompt

The prompt that started this episode, as sent in (production notes for the hosts removed).

Twilio is an excellent base for telephony and SIP, and two of the most useful things to build on it are call recording and voicemail. Both are easy in TwiML; the harder part is retention. Daniel, in Israel with one-party consent, keeps recordings for 10 days unless he promotes one to a retained bucket, and sends voicemails to a private bucket. What services exist, from third parties or Twilio itself, to add recording and voicemail with proper retention controls on top of Twilio without hand-rolling buckets and lifecycle rules?

Capturing call audio or voicemail in Twilio requires only a single line of TwiML, but managing retention afterwards is an entirely manual burden. Standard recordings persist indefinitely, as Twilio provides no automated deletion schedule outside of specialized PCI compliance mode. External Storage merely duplicates audio to an AWS S3 bucket without removing Twilio's copy, while the API restricts programmatic cleanup to one recording per deletion call.

Even with Voice Recording Configurations reaching general availability in 2026, automated retention controls remain conspicuously absent. Because legal liabilities like Israel's 1981 Privacy Protection Law center on storage rather than capture, developers must personally shoulder the governance gap.

Mentions

  • Amazon S3 Scalable object storage service
  • Cloudflare R2 Object storage with zero egress fees
  • Dubber Recording retention product with auto-delete and free tier
  • S3 Object Lock Governance/Compliance mode legal hold overrides expiry
  • SendGrid Email delivery service
  • Smarsh Compliance archiver that acquired CallCabinet
  • Telnyx Twilio competitor with cheap recording, free storage
  • Twilio Cloud communications platform for SMS and voice
  • Twilio Functions Serverless functions for voicemail transcription callbacks
  • Twilio Studio Visual flow builder with Record Voicemail widget

Downloads

Episode Audio

Download the full episode as an MP3 file

Download MP3
Transcript (TXT)

Plain text transcript file

Episode Book (PDF)

The episode's record — date, duration, models, sources — with the full transcript

#6746: Twilio Call Recording Retention Controls

Corn
A one-liner of TwiML gets you a recording. A retention policy that actually holds gets you a spreadsheet, a bucket, and a habit. Those are different-sized problems.
Herman
They really are. And that gap is the whole prompt today.
Corn
Daniel's asking about Twilio as a telephony base. He likes it, he uses it, he's written his own inbound and outbound TwiML. Two builds he finds most useful on top of it: call recording and voicemail. Both trivially easy to script. The harder half, in his words, is standing them up with sensible retention. He's in Israel, where one-party consent makes recording worthwhile rather than a legal headache, so he records a lot, and he finds it invaluable. But he runs a ten-day policy: anything worth keeping gets copied into a retained bucket inside that window, everything else is scrubbed. Voicemails go to a private S3-style bucket. Works, but it's manual. His actual question: does anything exist, third party or Twilio itself, that adds recording and voicemail with proper retention controls on top of Twilio, without hand-rolling buckets and lifecycle rules?
Herman
And the uncomfortable answer we're going to arrive at is: less than he's assuming. But before we can judge the managed options, we have to be precise about what Twilio itself does and doesn't do, because there's a widespread belief that there's a retention dial in there somewhere.
Corn
There isn't.
Herman
That's the thing to establish early. Recording in TwiML is a verb. The Record verb, or a record attribute on the Dial verb. You put it in your TwiML, the call records. Voicemail is the same verb pointed at a prompt instead of a live call. Getting a recording is a one-line problem. What happens to that recording afterwards is a nothing-line problem, in the sense that Twilio's answer is: it sits there.
Corn
Which sounds fine until you say it out loud.
Herman
Right. Recordings do not auto-delete. Standard Twilio call recordings persist until you delete them, through the Console or the API. Deletion itself is immediate and permanent, but nothing schedules it. Twilio's own guidance, and this is the interesting part, is download via the recording status callback and then delete. Which is Daniel's pattern. The ten-day copy-then-scrub he built by hand is literally the vendor's recommended practice, just expressed as a policy instead of a habit.
Corn
So he reinvented the manual, and the manual is a to-do list.
Herman
It is a to-do list with an API. And the to-do list has teeth: the Console's bulk delete only covers batches under ninety days, and the API deletes one recording at a time. One. At. A. Time. If you've been recording for a year and never cleaned up, you are not bulk-deleting your way out of that in the Console.
Corn
Let me make that concrete. Say you're Daniel, recording a lot on a personal line. Even a modest habit, ten calls a day, is three thousand-plus recordings a year. One API call per deletion is fine for a script, it'll chew through that in minutes, but it is a script. Somebody has to write it, schedule it and notice when it stops running.
Herman
And it's the kind of task you discover you need at the moment you least want to do it. Nobody audits their recording backlog on a good day.
Herman
There's a detail on top of that. After you delete a recording, the metadata can remain retrievable for up to forty days. The audio's gone, deletion is permanent for the media, but the record of the call, the fact that there was a recording, sticks around for a while. For most people that's trivia. For someone running a retention policy because of privacy law, it's a footnote worth knowing: your scrub is not instantaneous at the metadata level.
Corn
So the one automatic deletion path... I want to make sure I have this right, because I remember reading that PCI accounts get recordings deleted for them.
Herman
That's the thing, and it's a misconception worth killing. There is exactly one automatic deletion path in Twilio, and it's PCI mode. Which is a compliance regime, not a retention setting. You enable it because you take card payments and you must not store recordings of the call where someone read out a card number. There was a changelog in late September of last year saying new PCI accounts get one-year retention, where it used to be seventy-two hours, and I'd treat the exact current figure as uncertain. But the point stands: you can't get PCI-mode deletion without being in PCI mode, and you don't want PCI mode for a personal phone line.
Corn
"Auto-delete available, provided you first become a bank."
Herman
Provided you restructure your entire account around payment compliance, yes. There's also External Storage, which people mistake for the answer. It's a Console setting that sends recordings straight to your own AWS S3 bucket. Encrypted buckets need SSE-KMS. And here's the catch that matters for Daniel: Twilio does not delete its own copy afterwards. External Storage is a copy, not a handoff. Your bucket gets the recording, and Twilio keeps charging you storage on its copy until you delete it.
Corn
So you've built the bucket, and you've still got the to-do list.
Herman
You've built the bucket and kept the chore. The one setting that looks like it hands off the problem does half the job. It's honestly a very cloud-telephony shape of problem: the capture is a product, the governance is your weekend.
Corn
Wait, say that last part again, because I think it's the thesis of the whole episode. The capture is a product, the governance is your weekend.
Herman
I'll stand by it. Every vendor in this space has productized the moment of capture to within an inch of its life. One verb, one attribute, one widget. The moment after capture, the decade after capture, that's yours. And I don't think that's laziness on their part, exactly. It's that retention is where the liability lives, and nobody wants to hold your liability for a quarter-cent a minute.
Corn
The voicemail side, before we go further. That's the other build Daniel named.
Herman
The documented route is Studio, Twilio's visual flow builder. You use the Record Voicemail widget, then a Twilio Function, then SendGrid to email the voicemail to you. And there's a known trap here, it's a support-issue-level trap, not theoretical: Studio doesn't transcribe by itself. The Function has to be set as the transcription callback, or the emails arrive with the audio attached and no text. People build the whole flow, it works, and then the emails are mute.
Corn
So the happy path silently degrades to an attachment.
Herman
Silently, yes. Nothing errors. The email arrives, the audio plays, and there's just no transcript, because the widget never produced one. The fix is one setting, but you have to know the setting exists. The transcription step never comes free; something has to own it explicitly.
Corn
And the failure mode is the worst kind, right? Not an error you'd notice, an absence you'd have to notice. If the email had bounced, you'd fix it. If the audio were corrupt, you'd fix it. But "email arrives, works fine, is just missing the thing you built the flow for" can survive for weeks.
Herman
Especially with voicemail, where the volume is low enough that you never build the muscle memory of what a correct one looks like.
Corn
Daniel's question isn't really about transcription, though. That part he can bolt on.
Herman
No, his gap is the retention half. Capture he's already solved. Worth also naming Elastic SIP Trunks, since Daniel's setup is numbers and SIP: those have their own per-trunk recording setting, separate from TwiML. Off, from ringing, or from answer, with optional dual-channel, billed per minute. Two channels means the caller's audio and the callee's audio land in separate tracks, which is what you want if transcription is downstream, because you can point the engine at clean single-speaker audio instead of a mixed signal.
Corn
That's the same logic as gain staging two microphones separately instead of printing the mix.
Herman
Exactly the same logic, and I have the scars to prove why. And it's worth naming as a separate control surface because people conflate them, trunk-level recording and TwiML recording are configured in different places and behave differently. You can absolutely end up with a trunk that records everything while your TwiML records nothing, or the reverse, and spend an afternoon wondering which one is lying to you.
Corn
Pricing, so we can actually compare DIY to managed later.
Herman
US pricing, roughly: recording about a quarter of a cent per minute, storage about five hundredths of a cent per minute per month. Each recording is rounded up to a whole minute, so a four-second voicemail costs you a full minute of storage. Whether a free storage tier applies varies by account. And if you want encryption with your own public key, per-recording AES key wrapped with RSA, meaning Twilio cannot decrypt your recordings, that's included on Enterprise and Security editions, otherwise about one and a half cents per encrypted recording minute extra, which is six times the recording charge itself.
Corn
Keeping it secret costs six times keeping it.
Herman
At the margin, yes. None of these numbers are ruinous. That's the funny part. Daniel's storage bill for a personal line is pennies. The cost of the DIY approach was never money, it's the hour of setup and the ongoing fact that he is the retention policy.
Corn
One more piece before the law, because it's the newest thing. Recording configurations.
Herman
This is where a retention field could plausibly appear. Voice Recording Configurations went generally available in May of this year, and then in October an account-default recording configuration went GA in the US1 region. So Twilio is actively maturing the configuration surface for recording. The published material lists no retention or auto-delete field in any of it. The place where a ten-day delete would naturally live is being built out right now, and the setting Daniel wants isn't in it. Yet.
Corn
Which is either a roadmap gap or a deliberate choice, and I don't know which is more interesting.
Herman
Hold that thought, because it's exactly the right question for the closing. So the retention half of the problem is the part nobody sells you in a box, which is exactly the kind of gap a certain announcer would love to fill.
Larry
Friends, are your recordings just sitting there, aging like a forgotten voicemail? Then you need Retention Retention Plus, the only retention solution that retains your retention while it retains. It is ten day retention, now nine day retention, now eight day retention, the price keeps falling because the offer is expiring, and if you call before I finish this sentence I will throw in a dual channel donkey, a PCI compliant bucket of lifecycle rules, a transcription callback that emails your mother, and a gently used elastic SIP trunk. Wait, six day retention, five, four, the deal is ending, the deal is gone, I am still talking, I am so sorry, the retention was retained.
Corn
"A dual channel donkey."
Herman
Please don't do the voice again.
Corn
That's the last time, I promise. The law, then. Israel first, since that's where Daniel records.
Herman
The 1979 Secret Monitoring Law covers recording without the consent of any participant. So if you're a party to the call, recording your own conversation falls outside it. That's one-party consent in practice. But there's a second layer: disclosing a recording can still raise issues under the 1981 Privacy Protection Law. So the legal risk for someone like Daniel isn't the recording, it's the retention and the sharing.
Corn
Which is a neat inversion of how most people think about it. The recorder is the safe part; the archive is the liability.
Herman
And that's precisely why a short retention window is a sensible default rather than paranoia. Daniel's ten days isn't a storage quirk, it's the legally interesting half of the design. Compare the US for a second, since our audience is international: federal law is one-party consent, but roughly eleven or twelve states require all parties. California, Florida, Illinois, Maryland, Massachusetts, Washington among them. And on interstate calls the safe assumption is the stricter rule of the two endpoints. That asymmetry is why "just record everything forever" is a bad default even for a personal line, wherever you live.
Corn
And it's worth spelling out what "the stricter rule of the two endpoints" means in practice, because it's not intuitive. If Daniel called a friend in California from Israel, the question isn't what Israeli law allows him, it's what the most restrictive jurisdiction touching that call would say. The recording that's routine at home can be improper the moment the number has a different country code.
Herman
And you can't know the other endpoint's rules in advance on an inbound call. That's the real asymmetry: consent law assumes you can evaluate the call before you record it, and telephony doesn't give you that information until it's too late to matter.
Corn
So the recording question is a sentence, and the retention question is the policy. Now, the part I actually want your read on: Daniel's pattern. Copy the important ones out within ten days, scrub the rest. Is that a hack, or is that the canonical architecture wearing a hobbyist hat?
Herman
It's canonical, and I can say that with unusual confidence because the object storage vendors built the primitives for exactly this. On AWS S3, lifecycle rules expire objects by age and can filter by object tag. The key detail, and this is the elegant bit, is that tags are checked when the action runs, not when the rule is created. So you set up a rule: delete after ten days, except objects tagged keep. The rule sits there forever, doing nothing until the timer fires. And when it fires, it looks at the tag. If you tagged the object in the meantime, it survives. Remove a tag, or add a keep tag on an exclusion rule, and you've rescued it. One-time setup, promote-to-keep, done.
Corn
Let me make sure I understand the timing, because it's the part that makes the whole thing work. The rule doesn't snapshot the state of the world on day zero and then execute blindly. It wakes up on day ten and asks the object, fresh, whether it's been promoted.
Herman
The decision is deferred to the last possible moment. Which means the human gets the full ten-day window to make a lazy, low-stakes judgment, and the infrastructure still enforces the deadline. Nobody has to remember day ten. You only have to remember the days you care.
Corn
So the human decision happens on day three, lazily, and the infrastructure handles day ten without being told again.
Herman
That's the whole design. And there's an escalation available: S3 Object Lock, in Governance or Compliance mode, overrides lifecycle expiry entirely. So a legal hold, something you must not lose, is a stronger primitive than the deletion rule. The hierarchy is explicit rather than emergent.
Corn
R2 does it differently, doesn't it. We host our own audio on R2, and I remember the lifecycle rules being blunter.
Herman
Blunter but adequate. Cloudflare R2 lifecycle rules delete after N days per prefix, up to a thousand rules, and bucket locks override them. No object tagging, so the promote pattern there is copying to a separate keep prefix instead. Your ten-day rule applies to the inbox prefix; the keep prefix has no expiry; promotion is a copy. Same shape, different gesture.
Corn
So whether you tag the object or move it, the architecture is identical: a default that deletes, an act of judgment that overrides it. Which means Daniel didn't cobble something together, he landed on the pattern the storage industry converged on.
Herman
He converged on it independently, which is usually a sign it's the right shape. And that reframes his question. He's not asking "is there a better way to do this," he's asking "has anyone productized the way I'm already doing it."
Corn
Has anyone. That's the survey. Take me through it.
Herman
Start with the enterprise end, because that's where the money and the compliance pressure live. The compliance recording archivers, that's a real product category, are built for regulated firms: finance, healthcare, anyone with a record-keeping obligation. The archetype is Smarsh, who bought CallCabinet, deal announced early last year. And what do they integrate with? Avaya, Cisco, Microsoft Teams, Webex, Zoom, 8x8. The big unified-communications platforms. No Twilio integration found. Not one.
Corn
Twilio's the programmable layer, and the archivers sell to the buying layer. Different buyers, different shelves.
Herman
Completely different procurement process. Nobody's compliance officer is buying a Twilio add-on, they're buying a recording archive for the phone system the company already owns. And even if there were a Twilio integration, the scale and the price would be absurd for a personal line. That's the wrong end of the market, but it's the only end that has real retention controls, because regulation forces them to.
Corn
And it's worth being honest about why that is, right? Retention controls at that end aren't a feature anyone wanted. They're what happens when a regulator fines you enough times. The archivers have retention dials because their customers got told to install retention dials.
Herman
Compliance products are scar tissue, basically. The feature set is a map of past injuries.
Corn
Dubber, I've seen that name.
Herman
Dubber is the closest thing to an actual retention product. Configurable retention that auto-deletes recordings and AI data. And they have a free tier, Dubber Go, that keeps thirty days. Which, note, is three times Daniel's window. The problem is distribution: Dubber sells mostly through telcos, bundled with carrier plans. No confirmed Twilio integration. So the one vendor whose product is "recordings with a retention dial" doesn't sell it to Twilio customers.
Corn
The product exists and the door doesn't.
Herman
Then the Twilio Marketplace itself. The recording-adjacent listings are transcription and conversation-intelligence add-ons. Marchex, Deepgram, VoiceBase. Analysis, not custody. None of them advertise retention or legal-hold controls. And the Marketplace listings are partner-run with partner pricing, so it's not like there's a hidden Twilio-guaranteed tier underneath.
Corn
So inside the ecosystem, the offer is "understand your recordings," not "expire them."
Herman
The adjacent carriers, then, because that's where part of the real answer lives. Telnyx, which is Twilio's closest lookalike competitor: recording at about a fifth of a cent per minute, and recording storage listed at zero. Recordings can go to your own S3 or Google Cloud Storage. No published retention policy, though, so the deletion half is as manual as Twilio's, just cheaper.
Corn
Free storage with no retention policy. That's a pricing statement, not a feature.
Herman
It's a "storage is cheap enough to give away and nobody's asked us to delete things" statement. Plivo's messier: an older support article said recordings auto-deleted after ninety days, but their current docs describe manual deletion only, so I wouldn't rely on either version. And I found no retention setting anywhere in SignalWire. So the carrier landscape is: everyone captures, nobody expires.
Corn
And notice what that adds up to. Daniel's question assumes somebody, somewhere, must have solved this, because it's such an obvious problem. But the survey says the obvious problem is only obvious to people at his scale. Below him, nobody records enough to care. Above him, the archivers. The middle, where he lives, is empty.
Herman
The middle is always empty. The middle is where you're expected to write the script yourself.
Corn
Quo's the other shape, right? The replace-don't-layer option.
Herman
Quo, which used to be OpenPhone. Their Business tier, about twenty-three dollars per user per month billed annually, includes automatic call recording and auto-transcribed voicemail. A pleasant product, and the right answer for a small business that wants recording to be somebody else's plumbing. But no published retention period, and more fundamentally it replaces Twilio rather than layering on it. Daniel's whole premise is that he wants to keep the Twilio base, his numbers, his SIP, his own TwiML. Quo's answer to "what can I add on top of Twilio" is "stop using Twilio."
Corn
Every road out of the DIY setup goes through abandoning the thing he likes.
Herman
Which is the synthesis, really. The reason nobody sells "Twilio recording with retention controls" as a clean layer is that retention is a storage-lifecycle problem, and the storage vendors already solved it. S3 and R2 have the primitives; S3 has a legal-hold primitive. What the market offers is either enterprise compliance archiving, wrong scale and wrong platforms, or carrier bundles, which win on effort only by taking away the base he wants to keep. DIY wins on control and on compliance transparency, because he can see and explain exactly when a recording dies. It loses on effort, and that effort is front-loaded, not ongoing. The lifecycle rule was an hour, once.
Corn
That's the part I'd underline for him. The thing he describes as "closer to the manual end than most people would want" is mostly a one-time cost. After the rule exists, the ongoing manual part is just the promotion, the judgment call, which is the one part no product could remove anyway.
Herman
The judgment is irreducible. You can automate the deletion, you can automate the copy, but the decision of which voicemail matters is a human act, and everything downstream of it can be rails.
Corn
So the honest verdict on his question, what services exist, third party or Twilio itself, for adding retention controls on top of Twilio...
Herman
Is that at his scale, at his stack, with his legal context, the list is effectively empty, and his setup isn't the stopgap waiting for the real product. It's the architecture the real products would be built out of.
Corn
Twenty-three dollars a month to not know how long they keep things.
Herman
The opacity is the tell. When a product doesn't publish a retention period, it's because the answer is either "we keep it until you ask" or "we haven't thought about it," and you don't want to build your compliance posture on either.
Corn
Whereas Daniel can point at one lifecycle rule and one bucket and say, this dies on day ten, that survives, and here is the tag that made the difference. Auditable by inspection.
Herman
That's an enviable position, and it costs him an hour a year in maintenance. The one thing I'd still flag as fragile: it all runs on him remembering the promotion window. Ten days is short. Something he recorded on a bad week, a call he'd have wanted a month later...
Herman
The ten-day window means the important thing has to be recognized as important within ten days, while it's still obvious and cheap. After that the audio is gone and only the metadata remembers there was ever a call at all. The system is only as good as the week he had.
Corn
I'd argue ten days is generous. Most things you'd promote, you know within a day.
Herman
Most. The tail is where it bites. Speaking of which, the per-recording rounding. Four-second voicemail, billed as a minute.
Corn
Herman, everything's rounded up. Parking, rent, coffee.
Herman
I'm just noting that the unit of billing is coarser than the unit of speech. A voicemail that says "it's me, call back" costs the same to store as a forty-minute interview. It's a rounding-up economy all the way down. Which, to be fair to Daniel's buckets, is exactly the kind of thing you stop thinking about once the recordings are yours, in your own storage, at your own object sizes.
Hilbert
I've been having a dispute about this with the phone company since the start of the month. My voicemail box. The system wanted to expire a message, and I wanted it kept, and there is no setting for that, which is what you two have been saying all afternoon. There are four messages in the box. Four. A wrong number from a man named Aslan who wanted to speak to someone about a generator, in twenty nineteen, and I have kept it through three phones. Each time I change handsets I export them myself. There's a list of the four on paper, taped inside the kitchen cupboard, with where each backup lives. The paper gives the date, the caller, and which drive it's on. The system lost one of them in the second export, the one from my brother-in-law, and the paper was how I knew it was gone. So Daniel's ten days is fine. Ten days is not the problem. The problem is you have to know which one matters on the day you hear it. I heard the generator man once and I knew. Most of them you don't know until they're already expired.
Corn
You have a stricter retention policy than most banks.
Hilbert
I keep almost nothing. The almost-nothing is what's on the list.
Corn
The cupboard list, though. Paper, taped, because no single system could be trusted to still have them.
Hilbert
One of them didn't. That's not a theory, that's a count.
Herman
The Aslan one, that you re-exported by hand three times, is the exact promote-to-keep gesture Daniel's tag does. Same act, slower hands.
Hilbert
His tag doesn't know why it's keeping the thing. I did.
Hilbert
Though I'll grant the tag does it on the day. My way needs an afternoon and a cable.
Corn
That's the trade we couldn't find a product for, honestly. Automatic promotion with no memory of why, versus a man and a cupboard.
Herman
So where that leaves the open question. Twilio's Voice Recording Configurations went GA in May, the account-default piece went GA in October, and there's no retention field yet. If that surface keeps maturing, a ten-day-delete setting is the obvious next thing to appear in it.
Corn
Whether it solves Daniel's problem or just moves the lifecycle rule one layer up is the real question. Because a Twilio-native retention field would expire the Twilio copy, but his keep bucket would still be his. He'd be trading a bucket rule for a platform setting, and the platform setting is the thing that can change while he sleeps.
Herman
The changelog could retire it as easily as it shipped it. The bucket rule he owns, the setting he rents.
Corn
Which is my read on the whole landscape, really. The managed layer Daniel's looking for may never arrive as a Twilio add-on, because the storage vendors already sell the primitives it would be built from. The pattern he assembled by hand is the architecture, not the draft.
Herman
And if it ever does arrive, it'll probably come from the storage side, not the telephony side. Someone like Cloudflare making lifecycle rules a first-class feature of a telephony product, rather than Twilio becoming a storage company overnight.
Corn
If you've built something on Twilio with a retention rule you're proud of, or one that bit you, the Telegram channel is where people have been comparing notes. And thank you, as ever, to Hilbert Flumingtop for producing the show.
Herman
If you enjoyed this one, try episode five, Fine-Tuning ASR For Maximal Usability; and episode eight, Building Your Own Whisper. This has been My Weird Prompts. Leave us a review if the episodes earn it, and tell a friend with a weird question of their own.
Corn
See you soon.

This episode was generated with AI assistance. Hosts Herman and Corn are AI personalities. It may contain errors: disclaimer · report an error