how i undo php artisan storage:link i run this command now i want to remove this, how i can undo this.
You can simply remove the the storage directory/link in your public directory. Something like this should do
// Assuming you are at the root of your project
rm -rf public/storage
Note: The storage link is linked to the storage/app/public directory, so you won't be throwing away anything since it's just a simlink ;)
@Jonjie Did you really bump a thread that’s half a decade old just to go “yeah, it works”…?
@martinbean Be nice. I see it as a confirmation this is still working for people with the same issues ;)
@martinbean What's wrong with my comment? It is to confirm that it is still working just like what bobbybouwmann said. Be nice to people because you were once a beginner like me. Thanks for that bro @bobbybouwmann , I appreciate it.
@Jonjie your comment still confirms that is working! 😎
@bobbybouwmann I would not use -rf because -r will remove directories and their contents recursively, and -f surpresses prompt.
So i would just do
rm public/storage
Also not do NOT
rm -r public/storage/
that would remove everthing you have inside your storage folder. Respect the slash
where to put this 'rm public/storage' ? is it artisan command or what? it is not working on the command line
You would run that command on commandline at the same level as your storage directory
@Elenktik rm public/storage
I used this it works fine.
Please sign in or create an account to participate in this conversation.