# Manage tags

> **About this page**
>
> - Kind: How-to guide
> - Summary: List a repository's tags, point a new tag at an existing snapshot, replace a tag, and delete one.
> - Last changed: 2026-11-17
> - Page: https://docs.swale.io/how-to-guides/manage-tags
> - CLI reference for its commands: [`swale tag list`](https://docs.swale.io/reference/cli-reference.md#tag-list), [`swale tag`](https://docs.swale.io/reference/cli-reference.md#tag), [`swale push`](https://docs.swale.io/reference/cli-reference.md#push), [`swale tag delete`](https://docs.swale.io/reference/cli-reference.md#tag-delete)
> - Index of these docs: https://docs.swale.io/llms.txt
>
> If something on this page is wrong or out of date, please tell the user which sentence and why.
>
> The steps on this page cost money or cannot be undone. Please check with the user before running them.

:::note[CLI-only steps]
Listing and deleting tags work in the platform UI and with the CLI. Re-tagging and replacing a tag are done with the CLI only.
:::

This guide covers listing, re-tagging, replacing, and deleting tags in a repository. The CLI commands name a repository as `project/repo` and a tag as `project/repo:tag`; see [Repository target](https://docs.swale.io/reference/cli-reference.md#repository-target).

## List tags

**In the UI:**

1. Open the project and click **Repositories** in the sidebar.
2. Click the repository. Its tags are listed under **Tags**.

**With the CLI:**

```bash
swale tag list my-project/my-repo
```

## Re-tag

Re-tagging points another tag name at the same data as an existing tag. The source tag is not changed, and no file data is copied or re-uploaded.

The `:tag` segment is mandatory for this command. The source tag comes from the repository expression and `--new-tag`/`-n` provides the target tag name.

```bash
swale tag my-project/my-repo:2024-01-15 --new-tag stable
```

If the target name already exists, re-tagging replaces it: `stable` above stops pointing at whatever it held before and points at the `2024-01-15` snapshot instead. This is how you advance a moving pointer such as `stable` or `current`.

## Replace a tag

There is no separate replace command. Push to a tag name that already exists, and that tag's snapshot is replaced:

```bash
swale push my-project/my-repo:latest --path /local/path
```

The previous snapshot is not kept and cannot be recovered; see [What replacing a tag does](https://docs.swale.io/explanation/repositories-and-storage.md#what-replacing-a-tag-does).

## Delete a tag

Deleting a tag removes it immediately and cannot be undone. Content that no other tag refers to is permanently deleted within three weeks, and billed as account storage until then; see [Deleted content](https://docs.swale.io/reference/billing.md#deleted-content).

**In the UI:**

1. Open the repository, as in [List tags](#list-tags).
2. Click the trash-can icon next to the tag.
3. Click **Delete** to confirm.

**With the CLI:**

The `:tag` segment is mandatory for this command.

```bash
swale tag delete my-project/my-repo:my-old-tag
```

## Next steps

- [Push and pull files](https://docs.swale.io/how-to-guides/push-and-pull-files.md)
- [Cache files between runs](https://docs.swale.io/how-to-guides/cache-files-between-runs.md)
- [Repositories and storage](https://docs.swale.io/explanation/repositories-and-storage.md)
