Delete agents from a project.
Deleted
Agents from a project.
OK
"redacted"
"my-agent"
"v1.8.6"
"default"
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/agents', { method: 'DELETE', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/agents', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "fleetID": "123e4567-e89b-12d3-a456-426614174000", "token": "redacted", "name": "my-agent", "machineID": "text", "type": "fluentbit", "version": "v1.8.6", "edition": "community", "status": "healthy", "os": "unknown", "arch": "unknown", "flags": [ "text" ], "tags": [ "text" ], "rawConfig": "text", "firstMetricsAddedAt": "2024-12-22T05:39:22.342Z", "lastMetricsAddedAt": "2024-12-22T05:39:22.342Z", "metricsCount": 0, "createdAt": "2024-12-22T05:39:22.342Z", "updatedAt": "2024-12-22T05:39:22.342Z", "environmentName": "default" } ]