Improvements for file deletion in local storage