deleteProfile method

Future<void> deleteProfile(
  1. String name
)

Delete a profile

Implementation

Future<void> deleteProfile(String name) async {
  final file = File(_getProfilePath(name));

  if (!await file.exists()) {
    throw FileSystemException('Profile not found: $name', file.path);
  }

  await file.delete();
}