admin 管理员组

文章数量: 1086019

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?

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?

Share Improve this question edited Feb 12, 2020 at 21:43 Subtopic asked Feb 11, 2020 at 0:39 SubtopicSubtopic 114 bronze badges 1
  • Or... Don't use Softaculous :) – RiddleMeThis Commented Feb 12, 2020 at 21:52
Add a comment  | 

1 Answer 1

Reset to default 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!

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)