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