Skip to content

Commit 9b49276

Browse files
authored
docs: document cleanup of ASDF_DATA_DIR in upgrade guide (#2114)
1 parent e81d139 commit 9b49276

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ repository
55
.vagrant
66
keyrings
77
/tmp
8-
.idea
98

109
dist/
1110

docs/guide/upgrading-to-v0-16.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,25 @@ above in "Upgrading Without Losing Data". If it turns out that the upgrade to
105105
version. Remove the lines you added to your shell RC file, and add back in the
106106
lines you removed or commented out.
107107

108+
### Removing old files
109+
110+
**Only do this after you've completed all the steps above and have verified
111+
your new asdf installation is working correctly!** After upgrade there are
112+
various files you can remove from the old Bash-script based versions of asdf.
113+
Most of the files in your data directory (typically `~/.asdf/`) can be removed.
114+
The only directories that must be **kept** are:
115+
116+
* `downloads/`
117+
* `installs/`
118+
* `plugins/`
119+
* `shims/`
120+
121+
The rest can be deleted. This can be done in one command with `find`:
122+
123+
```
124+
find . -maxdepth 1 -not -name downloads -not -name plugins -not -name installs -not -name shims -exec rm -rf {} \;
125+
```
126+
108127
## Breaking Changes
109128

110129
### Hyphenated commands have been removed

0 commit comments

Comments
 (0)