0

Softaculous seems to always adds junk to the installs I don't want. Such as example posts, pages, plugins, and starter themes. How do I remove them all for a fresh start?

1
  • Or... Don't use Softaculous :) – RiddleMeThis Feb 12 '20 at 21:52
0

I'd love any improvements, or hopefully this helps someone.

wp post delete $(wp post list --post_type='post' --format=ids);wp post delete $(wp post list --post_type='page' --format=ids);wp plugin delete --all;wp theme delete $(wp theme list --status=inactive --field=name);wp widget delete $(wp widget list sidebar-1 --fields=id);wp widget delete $(wp widget list sidebar-2 --fields=id)

edit: added removal of default widgets in sidebar, all seems to work now!

1
  • Also, make sure you don't run this as root, at least it doesn't work for me. Rather $ su {user} then execute this command in the root of whatever wordpress install you want to clear out junk items in the default wordpress install. – Subtopic Aug 11 '20 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.