deleteCustomDomain method
Implementation
Future<void> deleteCustomDomain({required String projectId, required String domain}) async {
final encodedProjectId = Uri.encodeComponent(projectId);
final encodedDomain = Uri.encodeComponent(domain);
final uri = Uri.parse('$baseUrl/accounts/projects/$encodedProjectId/custom-domains/$encodedDomain');
final response = await httpClient.delete(uri);
if (response.statusCode >= 400) {
throw MeshagentException('Failed to delete custom domain. Status code: ${response.statusCode}, body: ${response.body}');
}
}