twilio / OpenVBX

OpenVBX is a web-based open source phone system for business.
http://openvbx.org
Other
699 stars 342 forks source link

Add an option to delete associated media from Twilio, when deleting an MMS #370

Open bkonia opened 8 years ago

bkonia commented 8 years ago

Currently, when you delete an SMS or MMS, it's only deleted from the local database, not from Twilio itself. I see no reason to delete the text content, as it costs nothing to store it and it never hurts to have a history of all your old messages. However, Twilio does charge to store media, so when deleting an MMS, I think OpenVBX should provide an option to also delete any media attachments from the Twilio archive.

I believe an elegant way to implement this would be to add a Delete Media checkbox next to the delete button. If this checkbox is enabled, it would leave the text content intact at Twilio, but delete any associated media attachments. The user should also be able to select a default behavior in Settings->System Config.

As an aside, I think it would be beneficial to change the labeling of the Delete button to "Archive", to more accurately describe its behavior,.