aboutsummaryrefslogtreecommitdiff
path: root/docs/luarocks_purge.md
blob: 7fda2565c2ddd8eb20808d38e70874cf17b88b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# luarocks purge

Remove all installed rocks from a tree.

## Usage

`luarocks purge --tree=<tree> [--old-versions]`

Removes all installed rocks from a given tree. The tree must be provided
explicitly using `--tree`.

If `--old-versions` is passed, the highest version
of each rock is kept.

## Example

Deleting all rocks from local tree:

```
luarocks purge --tree=~/.luarocks
```