[Bug report] entry.delete()

From the docs:

Removes this entry from the file system. If the entry is a folder, all the contents will also be removed

My code:

    await entry.delete();


[Error: Delete on non-empty folder not allowed]

I’m trying to delete a non empty folder according to the docs, but seems that you can’t.

Looks like the docs are in error here; you first have to remove the entries within the directory first, before removing the entry. Thanks for the catch; we’ll update the docs!

Yes this was my solution, I removed the entry first with folder.getEntries() and then the folder itself.