Hi!
Is there an fs API call that can delete an entire folder?
Iterating over an calling unlink() many times seems bad )-: (slow?)
Hi @yaronlevi , I think this is exactly what we're doing in native unlink implementation, you can delete a folder in a single call
RNFetchBlob.fs.unlink('/path/to/a/folder')
However, if the folder contains lot of files the process might take some time.
thanks it worked! thanks
Maybe the docs could be updated "delete file or entire folder". just to be clear
@yaronlevi , thanks for the advice I'll update the document once I have time 馃槃
Please tell me, how i can delete all files in a folder without foreach?
Most helpful comment
Hi @yaronlevi , I think this is exactly what we're doing in native
unlinkimplementation, you can delete a folder in a single callHowever, if the folder contains lot of files the process might take some time.