diff options
Diffstat (limited to 'docs/luarocks_purge.md')
-rw-r--r-- | docs/luarocks_purge.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/luarocks_purge.md b/docs/luarocks_purge.md new file mode 100644 index 00000000..7fda2565 --- /dev/null +++ b/docs/luarocks_purge.md | |||
@@ -0,0 +1,22 @@ | |||
1 | # luarocks purge | ||
2 | |||
3 | Remove all installed rocks from a tree. | ||
4 | |||
5 | ## Usage | ||
6 | |||
7 | `luarocks purge --tree=<tree> [--old-versions]` | ||
8 | |||
9 | Removes all installed rocks from a given tree. The tree must be provided | ||
10 | explicitly using `--tree`. | ||
11 | |||
12 | If `--old-versions` is passed, the highest version | ||
13 | of each rock is kept. | ||
14 | |||
15 | ## Example | ||
16 | |||
17 | Deleting all rocks from local tree: | ||
18 | |||
19 | ``` | ||
20 | luarocks purge --tree=~/.luarocks | ||
21 | ``` | ||
22 | |||