diff --git a/app/lib/methods/audioFile.ts b/app/lib/methods/audioFile.ts index 2c0f7ab5d..ac3c135ae 100644 --- a/app/lib/methods/audioFile.ts +++ b/app/lib/methods/audioFile.ts @@ -52,7 +52,7 @@ export const deleteAllAudioFiles = async (serverUrl: string): Promise => { try { const serverUrlParsed = sanitizeString(serverUrl); const path = `${FileSystem.documentDirectory}audios/${serverUrlParsed}`; - await FileSystem.deleteAsync(path); + await FileSystem.deleteAsync(path, { idempotent: true }); } catch (error) { log(error); }