Files
2017-02-27 21:34:25 -08:00

16 lines
252 B
Go

package command
import (
"github.com/shyiko/jabba/cfg"
"os"
"path/filepath"
)
func Uninstall(selector string) error {
ver, err := LsBestMatch(selector)
if err != nil {
return err
}
return os.RemoveAll(filepath.Join(cfg.Dir(), "jdk", ver))
}