How can I remove a plugin or change a directory's name?

Posted October 6, 2019 2.5k views
WordPressDigitalOcean 1-Click Apps Marketplace

I am facing the following problem. I installed wordpress through one click installation. Then I installed shield security plugin. I enabled google recaptcha through that plugin. But Keys were not properly set. I am locked out of site. I couldnot login into my wp admin base.

I found this solution.

So I can either change folder name or create additional folder in that directory. How do I do that using ssh ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Hi @matam,

You are perfectly correct, you can SSH to your server, go to your applications folder

cd /path/to/file

and disable the plugin by renaming the folder

cd wp-content/plugins/
mv FoldersOfPlugin to FoldersOfPlugin-old

See if you can access your website now.



Thanks for your reply

It is not working.

my: command not found

Between wordpress is intaleld at



So if I Rename it back to plugins then will they be activated?? (i guess not) . How can we activate it back again with same ssh commands without wp-cli