Skip to content

Instantly share code, notes, and snippets.

@adamcyber1
Last active September 22, 2020 03:09
Show Gist options
  • Save adamcyber1/f098c4ace6b0ac105c18c2470da1a4e5 to your computer and use it in GitHub Desktop.
Save adamcyber1/f098c4ace6b0ac105c18c2470da1a4e5 to your computer and use it in GitHub Desktop.
Doogle Grive delete file
void deleteFile(StorageItem item) async {
try {
await Amplify.Storage.remove(
key: item.key,
);
} catch (e) {
Alert(
context: context,
type: AlertType.error,
desc: "Error Deleting File: " + e.toString()).show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment