user1066006
user1066006

Reputation: 135

PhoneGap (1.9): How to use Filesystem to delete content of a Folder?

I'm working with Sencha Touch 2.0 and PhoneGap 1.9 to create an Android Application. I'm already saving all images (by taking a camera-shot) on the SD-Card using the Filesystem-access provided by PhoneGap.

Now I also wanna be able to delete the whole content of the Folder on the SD-Card whenever the user uninstalls the app.

In the API Doc I couldnt find a fitting delete operation, so I hope you can help me with this.

Upvotes: 0

Views: 2211

Answers (1)

Simon MacDonald
Simon MacDonald

Reputation: 23273

You would want to use DirectoryEntry.removeRecursively.

Upvotes: 1

Related Questions