---
title: "Delete an agent from a FlowAI project"
method: DELETE
path: "/agent-project-service/projects/{projId}/agents/{agentId}"
tags: ["Agent Project Service"]
---

# Delete an agent from a FlowAI project

`DELETE /agent-project-service/projects/{projId}/agents/{agentId}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/agent-project-service/projects/{projId}/agents/{agentId}`
- Auth: none declared

Deletes an Agent Definition from a FlowAI Project. Requires editor or owner GBAC role on the project.

## Path parameters

- `projId` union, required
  - string, uuid
  - string
- `agentId` string, uuid, required

## Response `200`

The deleted Agent Definition

- AgentProjectServiceDeleteAgentResponse200
  - `message` string, required
  - `data` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaData, required
    - `_id` string, uuid, required
    - `name` string, required
    - `description` string, required
    - `instructions` string, required
    - `inputSchema` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataInputSchema, required
    - `created` string, date-time, required
    - `createdBy` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataCreatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `lastUpdated` string, date-time, required
    - `lastUpdatedBy` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataLastUpdatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `operators` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataOperatorsItems[], required
      - `_id` string, required
      - `name` string, required
      - `provenance` string, required
    - `namespace` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataNamespace, required
      - `type` 'flowai_project', required
      - `_id` string, uuid, required
      - `name` string, required
    - `authorized` boolean, required
    - `provider` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataProvider
      - `profile` string, uuid, required
      - `model` string, uuid, required
      - `lastKnownProfileName` string, required
      - `lastKnownModelName` string, required
    - `tools` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataToolsItems[], required
      - union
        - AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataToolsItems0
          - `referenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
        - AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataToolsItems1
          - `unauthorizedReferenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
    - `skills` AgentProjectServiceProjectsProjIdAgentsAgentIdDeleteResponsesContentApplicationJsonSchemaDataSkillsItems[], required
      - `skillId` string, required
      - `version` integer, required
      - `latest` boolean, required
      - `lastKnownName` string, required

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Agent Project Service` added
  - api tag `agentProjectService` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/agent-project-service/projects/:projId/agents/:agentId/delete.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
