refactoring deleteFromExternalStorage