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

# repo.deleteTag()

> Delete a tag from the repository.

> [!WARNING]
>
> This page documents the earlier Code Storage SDKs: `@pierre/storage`, `pierre-storage`, and
> `code-storage-go`. New code uses the [Pierre SDK](https://code.storage/docs/sdks.md). To move code to the new SDK, use the
> [`pierre-migrate`
> skill](https://github.com/pierrecomputer/skills/tree/main/skills/pierre-migrate).

```typescript TypeScript theme={null} theme={"theme":{"light":"github-light","dark":"min-dark"}}
const result = await repo.deleteTag({
  name: 'v1.0.0',
});

console.log(result.message);
```

```python Python theme={null} theme={"theme":{"light":"github-light","dark":"min-dark"}}
result = await repo.delete_tag(name="v1.0.0")

print(result["message"])
```

```go Go theme={null} theme={"theme":{"light":"github-light","dark":"min-dark"}}
result, err := repo.DeleteTag(context.Background(), storage.DeleteTagOptions{
	Name: "v1.0.0",
})

fmt.Println(result.Message)
```

Tag names must not start with `refs/` — the SDK handles ref resolution automatically.

## Options

**name** `string` *required*

Tag name to delete (e.g. `v1.0.0`). Must not start with `refs/`.

**refPolicies** `object[]`

Ordered ref policy rules (`{ pattern, ops? }`) in the JWT for this call. Code Storage uses the first rule that matches the target ref. Python: `ref_policies`. Go: `RefPolicies` with type `storage.RefPolicyList`. See [Ref Policies](https://code.storage/docs/repos/ref-policies.md).

## Response

**name** `string`

The deleted tag name

**message** `string`

Confirmation message from the API


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.