Does Laravel Valet have a un-park/unlink for all valet parked projects on a system?
Laravel Valet has forget
command that removes parked directories to valet park list.
cd parked_directory
valet forget
While Laravel Valet doesn't have a command to forget all the registered working directories, you can manually do it by editing the ~/.valet/config.json
file and remove the registered directories from the paths
array like the following:
{
"domain": "dev",
"paths": [
"/Users/whoami/.valet/Sites",
"/Users/whoami/Sites/Test"
]
}
Alternatively, you can manually go to each of the registered Valet directories and forget them by running valet forget
. However, this would be time-consuming especially when you have bulk registered directories with Valet.