Search⌘ K
AI Features

Deleting a Contact

Explore techniques for permanently deleting contacts in a Marionette.js application with persisted local storage. Learn how the destroy method removes models from storage and keeps your contact list updated across sessions and browser refreshes.

Permanently deleting a contact from storage

We also need to adapt the code for deleting a contact so the model gets erased from the storage.

Previously, we simply removed it from the collection, but we now need to actually delete it. This is our ...