---
title: delete_artifact
description: Permanently delete an artifact from a Polygraph session by name.
sidebar:
  order: 18
  label: delete_artifact
---

<!-- Generated by scripts/sync-mcp-ref.mjs from data/mcp-tools.json. Do not edit by hand. -->

Permanently delete an artifact from a Polygraph session by name.

This removes the artifact and ALL of its versions, and cannot be undone. Returns the session's remaining artifacts. Use list_artifacts first if you are unsure of the exact name.

## Arguments

| Name | Type | Required | Description |
| ---- | ---- | -------- | ----------- |
| `sessionId` | `string` | yes | The Polygraph session ID, or a supported Polygraph app session URL. Supported URL paths are /s/<session-id> and /orgs/<org-id>/sessions/<session-id>. URL inputs are normalized to the session ID; the MCP always uses the current Polygraph API configuration. |
| `name` | `string` | yes | The name of the artifact to delete. |
