blockenv clean
warning
This command will remove configurations and mods. Use with caution.
Usage
blockenv clean [options]
Clean the testing environment
Options
| Option | Description |
|---|---|
| -s, --side <side> | Whether to clean the server or client (choices: "client", "server") |
| -e, --environment <environment> | The environment to clean |
| -h, --help | display help for command |
Description
Cleans up the BlockEnv client environment by removing files and directories.
This is useful for resetting the environment or freeing up space.
The following items are removed when this command is executed
(* indicates all files and directories within the specified directory):
- config/*
- defaultconfigs/*
- downloads/* (client-side only)
- logs/*
- mods/*
- resourcepacks/* (client-side only)
- shaderpacks/* (client-side only)
- world/ (server-side only)
- options.txt (client-side only)
- servers.dat (client-side only)
- servers.dat_old (client-side only)
- usercache.json
- usernamecache.json
- whitelist.json (server-side only)
- ops.json (server-side only)
- banned-ips.json (server-side only)
- banned-players.json (server-side only)
Examples
Display the help message for the clean command:
blockenv clean --help
Clean up the BlockEnv client environment:
blockenv clean --side client
Clean up the BlockEnv server environment:
blockenv clean --side server
Clean up a BlockEnv environment named myenv (This requires a blockenv.config.json configuration file):
- Command
- blockenv.config.json
blockenv clean --environment myenv
{
// ...
"environments": {
"myenv": {
"type": "client", // or "server"
// ...
}
}
// ...
}