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

#  

# `prefect artifact`

```command theme={null}
prefect artifact [OPTIONS] COMMAND [ARGS]...
```

> [!NOTE]
>
> Inspect and delete artifacts.

## `prefect artifact ls`

```command theme={null}
prefect artifact ls [OPTIONS]
```

> [!NOTE]
>
> List artifacts.

> **Options**
>
> **--limit**
>
> The maximum number of artifacts to return.
>
> **--all**
>
> Whether or not to only return the latest version of each artifact.
>
> **--output**
>
> Specify an output format. Currently supports: json

## `prefect artifact inspect`

```command theme={null}
prefect artifact inspect [OPTIONS] KEY
```

> [!NOTE]
>
> View details about an artifact.

> **Arguments**
>
> **KEY** `string` *required*

> **Options**
>
> **--limit**
>
> The maximum number of artifacts to return.
>
> **--output**
>
> Specify an output format. Currently supports: json

> [!NOTE]
>
> **Example:**
>
> `$ prefect artifact inspect "my-artifact" --output json`
>
> ```json theme={null}
> [
>   {
>     "id": "ba1d67be-0bd7-452e-8110-247fe5e6d8cc",
>     "created": "2023-03-21T21:40:09.895910+00:00",
>     "updated": "2023-03-21T21:40:09.895910+00:00",
>     "key": "my-artifact",
>     "type": "markdown",
>     "description": null,
>     "data": "my markdown",
>     "metadata_": null,
>     "flow_run_id": "8dc54b6f-6e24-4586-a05c-e98c6490cb98",
>     "task_run_id": null
>   },
>   {
>     "id": "57f235b5-2576-45a5-bd93-c829c2900966",
>     "created": "2023-03-27T23:16:15.536434+00:00",
>     "updated": "2023-03-27T23:16:15.536434+00:00",
>     "key": "my-artifact",
>     "type": "markdown",
>     "description": "my-artifact-description",
>     "data": "my markdown",
>     "metadata_": null,
>     "flow_run_id": "ffa91051-f249-48c1-ae0f-4754fcb7eb29",
>     "task_run_id": null
>   }
> ]
> ```

## `prefect artifact delete`

```command theme={null}
prefect artifact delete [OPTIONS] [KEY]
```

> [!NOTE]
>
> Delete an artifact.

> **Arguments**
>
> **KEY** `string`
>
> The key of the artifact to delete.

> **Options**
>
> **--id**
>
> The ID of the artifact to delete.

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect artifact delete "my-artifact"
> ```
