{"id":220611,"date":"2025-01-30T06:00:58","date_gmt":"2025-01-30T06:00:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/factory-reset\/"},"modified":"2025-01-31T15:45:53","modified_gmt":"2025-01-31T15:45:53","slug":"factory-reset","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/factory-reset\/","author":8919718,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3","stable_tag":"1.3","tested":"6.7.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Factory Reset","header_author":"Ankit Rawat","header_description":"A WordPress plugin to reset your site to its initial state. Use with caution as it deletes all content, plugins, themes, and custom files except for this plugin.","assets_banners_color":"","last_updated":"2025-01-31 15:45:53","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/ankitrawat.com\/factory-reset-plugin\/","header_author_uri":"https:\/\/ankitrawat.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":1354,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2":{"tag":"1.2","author":"ankitrawat","date":"2025-01-30 06:00:35"},"1.3":{"tag":"1.3","author":"ankitrawat","date":"2025-01-31 15:45:53"}},"upgrade_notice":{"1.3":"<ul>\n<li>The <code>themes<\/code> folder is now preserved but emptied during the reset process. Ensure you have a backup before upgrading.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3231717,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3231717,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2","1.3"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Factory Reset admin page with a warning message and reset button."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[237689,237688,4684,144773,4982],"plugin_category":[59],"plugin_contributors":[236932],"plugin_business_model":[],"class_list":["post-220611","plugin","type-plugin","status-publish","hentry","plugin_tags-clean-install","plugin_tags-factory-reset","plugin_tags-reset","plugin_tags-site-reset","plugin_tags-wordpress-reset","plugin_category-utilities-and-tools","plugin_contributors-ankitrawat","plugin_committers-ankitrawat"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/factory-reset\/assets\/icon-128x128.png?rev=3231717","icon_2x":"https:\/\/ps.w.org\/factory-reset\/assets\/icon-256x256.png?rev=3231717","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The <strong>Factory Reset<\/strong> plugin allows you to reset your WordPress site to its default state with a single click. It is designed for developers, testers, or anyone who needs to quickly clean up a WordPress installation.<\/p>\n\n<p><strong>Warning:<\/strong> This plugin is extremely powerful and should be used with caution. It will delete all posts, pages, media, plugins, themes, custom files, and database tables (except for the current user and basic WordPress settings). The <code>themes<\/code> folder will be preserved but emptied.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Delete all posts, pages, custom post types, and associated metadata.<\/li>\n<li>Remove all comments and media files.<\/li>\n<li>Delete all users except the current admin.<\/li>\n<li>Reset WordPress options to default values.<\/li>\n<li>Drop all custom database tables with the <code>wp_<\/code> prefix.<\/li>\n<li>Delete all files in <code>wp-content\/uploads<\/code> and custom folders.<\/li>\n<li>Remove all plugins except this one.<\/li>\n<li>Empty the <code>themes<\/code> folder while preserving its structure.<\/li>\n<li>Easy-to-use admin interface with a confirmation prompt.<\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under the GNU General Public License v2 or later.<\/p>\n\n<h3>Author<\/h3>\n\n<p>Developed by <a href=\"https:\/\/ankitrawat.com\">Ankit Rawat<\/a>.<\/p>\n\n<h3>Plugin URI<\/h3>\n\n<p>For more information, visit the <a href=\"https:\/\/ankitrawat.com\/factory-reset-plugin\/\">plugin page<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>factory-reset<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Go to <strong>Tools &gt; Factory Reset<\/strong> in the WordPress admin dashboard.<\/li>\n<li>Click the <strong>Reset Site<\/strong> button to reset your site to its default state.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='q%3A%20is%20this%20plugin%20safe%20to%20use%3F'><h3>Q: Is this plugin safe to use?<\/h3><\/dt>\n<dd><p>A: This plugin is designed for developers and advanced users. It permanently deletes data, so use it with caution. Always back up your site before using it.<\/p><\/dd>\n<dt id='q%3A%20what%20happens%20to%20the%20current%20user%3F'><h3>Q: What happens to the current user?<\/h3><\/dt>\n<dd><p>A: The current admin user is preserved, and all other users are deleted.<\/p><\/dd>\n<dt id='q%3A%20does%20this%20plugin%20delete%20the%20%60themes%60%20folder%3F'><h3>Q: Does this plugin delete the `themes` folder?<\/h3><\/dt>\n<dd><p>A: No, the <code>themes<\/code> folder is preserved but emptied. This ensures the directory structure remains intact.<\/p><\/dd>\n<dt id='q%3A%20can%20i%20recover%20data%20after%20using%20this%20plugin%3F'><h3>Q: Can I recover data after using this plugin?<\/h3><\/dt>\n<dd><p>A: No, this plugin permanently deletes data. Ensure you have a backup before proceeding.<\/p><\/dd>\n<dt id='q%3A%20does%20this%20plugin%20work%20on%20multisite%20installations%3F'><h3>Q: Does this plugin work on multisite installations?<\/h3><\/dt>\n<dd><p>A: No, this plugin is designed for single-site installations only.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<ul>\n<li>Preserved the empty <code>themes<\/code> folder after reset.<\/li>\n<li>Improved code structure and readability.<\/li>\n<li>Added a <code>$preserve_directory<\/code> parameter to the <code>delete_files<\/code> method.<\/li>\n<li>Updated documentation and tested compatibility with WordPress 6.7.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Initial release with basic reset functionality.<\/li>\n<\/ul>","raw_excerpt":"Plugin to reset your site to its initial state.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/220611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=220611"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ankitrawat"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=220611"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=220611"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=220611"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=220611"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=220611"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=220611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}