---
title: Remove
description: Remove a file or directory from a teamspace drive.
canonical: 'https://lightning.ai/docs/cli/stable/command-details/rm'
---
# Remove {#remove}

Remove a file or directory from a teamspace drive.

PATH: Drive path to remove, in the format lit://<owner>/<teamspace>/<path>, or lit:///<path> for the current teamspace.

**Usage:**

```console
lightning rm [OPTIONS] PATH
```

## Arguments {#rm-arguments}

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `PATH` | `text` | yes | No description provided. |

## Options {#rm-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `-r`, `--recursive` | — | no | `Sentinel.UNSET` | Remove directories recursively |
| `-f`, `--force` | — | no | `Sentinel.UNSET` | Ignore nonexistent files, never prompt |

## Examples {#rm-examples}

```console
  lightning rm lit://<owner>/<my-teamspace>/uploads/file.txt
  lightning rm lit:///uploads/file.txt
  lightning rm -r lit://<owner>/<my-teamspace>/artifacts/reports/
```

---

**Navigation**

- Parent: [Command details](/docs/cli/2026.11.20/command-details.md)
