Update localstorage when ticket is deleted
Removed some redundant code