khushpanchal / Ketch

An Android File downloader library based on WorkManager with pause and resume support.
https://medium.com/@khush.panchal123/ketch-android-file-downloader-library-7369f7b93bd1
448 stars 34 forks source link

How to clear Ketch database only, without deleting file? #21

Closed hemantp66 closed 1 month ago

hemantp66 commented 3 months ago

As my download is finished from ketch , i am observing and saving entry in my apps database, now there is no need to keep additinal entry in ketch database, so i want to ckear that entry?

khushpanchal commented 3 months ago

Currently there is no functionality to delete only entry and not file. Why you need to clear the entry of the downloaded video anyway?

Anyways I am planning to add one additional Boolean in clearDb function in case someone want to only delete the entry. Feel free to create the PR if you want to implement it.

khushpanchal commented 1 month ago

@hemantp66 this is done in version 2.0.2

To clear only db entry, use clearDb(id, false) function, this will clear only DB entry and skip file deletion