deleteAsset(assetId: string)
This is a function which is used to delete an asset.
Make sure you gave proper permissions in AndroidManifest.xml file of your app, inorder this function to work properly.
Fo more information about permissions, you can refer Getting started page.
Returns:
- It will return
trueif the asset is deleted successfully along with a toast saying deleted. - It will fail with the error if any thing gone wrong.