```dart
Future<void> deleteUser() async {
  try {
    await Amplify.Auth.deleteUser();
    print('Delete user succeeded');
  } on Exception catch (e) {
    print('Delete user failed with error: $e');
  }
}
```
