> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# prj.asset.delete_data_asset

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

Delete a data asset and its metadata.

```python theme={null}
prj.asset.delete_data_asset(name)
```

Hard delete a data asset and every instance attached to its name. Use this to prune orphan IDs left in the catalog after a rename. The call also removes the asset from the project's flowproject metadata so the UI Overview reflects the change. Idempotent: re-deleting a name that's already gone is a no-op.

<GTable cols="35% 15% 50%">
  <GHead>
    <GRow>
      <GTH>Parameter</GTH>
      <GTH>Type</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`name`</GCell>
      <GCell>str</GCell>
      <GCell>Asset name/id</GCell>
    </GRow>
  </GBody>
</GTable>

**Returns:** `DeleteResult(catalog_deleted: bool, metadata_updated: bool)`—`catalog_deleted` is `False` when the name was already absent from the catalog; `metadata_updated` is `False` when the name wasn't in the spec (or no flowproject metadata exists yet).

Raises `RuntimeError` on read-only clients or when the metadata sync fails after a successful catalog DELETE (the error message names both halves). The catalog has no soft-delete state—deletion removes every instance, alias, and lineage edge for the asset name. To remove an entire branch's metadata at once, use [`outerbounds flowproject teardown-branch`](/docs/platform/guides/projects/utilities-api/cli/flowproject/teardown-branch).
