> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/cloud/database/aggregates/edit.md).

# Edit an aggregate

**Where:** Database → Aggregates → aggregate → Edit · `/projects/<project>/db/aggregates/<aggregateId>/edit`

{% hint style="info" %}
Screenshot TODO — capture comes from testing-plan area **04-taxonomies**.
{% endhint %}

The same editor as [Create an aggregate](/cloud/database/aggregates/new.md) with the saved pipeline loaded. The **Schema** is fixed — an existing aggregate cannot be moved to another collection; name, description, and the pipeline are editable, and **TEST** re-runs against live data. A **Delete** button with a confirmation dialog removes the aggregate.

Because apps call the aggregate **by id** (`maggr_…`), you can tune the pipeline here without redeploying anything. **Edit using AI Chat** lets the assistant rewrite the open pipeline in place — you review the change and press **Save**.

## Use it from code

[Database → Aggregates](/sdks-and-cli/database/aggregates.md)

## API reference

Endpoints: [Save Database Aggregate](/api-reference/database/aggregates/save-database-aggregate.md), [Delete Database Aggregate](/api-reference/database/aggregates/delete-database-aggregate.md).
