diff --git a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/CopyMoveFileHandler.kt b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/CopyMoveFileHandler.kt index cd916d2dd5..7ea71da622 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/CopyMoveFileHandler.kt +++ b/app/src/main/java/org/kiwix/kiwixmobile/nav/destination/library/CopyMoveFileHandler.kt @@ -318,6 +318,7 @@ class CopyMoveFileHandler @Inject constructor( try { DocumentsContract.deleteDocument(activity.applicationContext.contentResolver, uri) } catch (ignore: Exception) { + selectedFile?.delete() ignore.printStackTrace() } }