deleteDomain method

Future<void> deleteDomain(
  1. String domainId
)

Implementation

Future<void> deleteDomain(String domainId) async {
  final userId = _client.auth.currentUser?.id;
  if (userId == null) {
    throw StateError('Cannot delete domain: user is not authenticated');
  }
  await _client.from('domains').delete().eq('id', domainId);
}