=== XCIXY Database Cleaner ===

Contributors: 99yogesh
Tags: database, database cleaner, cleanup, optimization, orphan data, postmeta, usermeta
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clean orphaned WordPress metadata, remove unwanted post data, and manage unused database tables.

== Description ==

XCIXY Database Cleaner is a lightweight WordPress database maintenance plugin that provides tools for cleaning orphaned metadata and unwanted database records.

The plugin provides an administration page under **Tools → XCIXY Database Cleaner**.

Before performing any destructive database operation, always create a complete backup of your WordPress database.

Features:
* Clean orphaned post meta.
* Clean orphaned user meta.
* Delete post revisions.
* Delete auto-draft posts.
* Delete draft posts.
* Remove all comments and associated comment metadata from the database.
* Identify database tables that are not part of the standard WordPress core tables.
* Select database tables for removal.
* WordPress nonce protection for administrative actions.
* Capability-based access control.
* Translation-ready interface.

== Important Warning ==

Database cleanup operations can permanently remove data.

Always create a complete database backup before using this plugin.

The table-cleanup functionality should only be used when you are certain that a selected table is no longer required by WordPress, a plugin, a theme, or another application.

Deleting a table that is still being used by another plugin or theme may cause data loss or break functionality.

== Installation ==

1. Upload the `xcixy-database-cleaner` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Tools → XCIXY Database Cleaner**.
4. Create a database backup before performing any cleanup operation.

== Usage ==

After activating the plugin:

1. Open **Tools → XCIXY Database Cleaner**.
2. Review the available cleanup operations.
3. Select the operation you want to perform.
4. Confirm the action when prompted.
5. Verify your website after completing database cleanup.

== Database Cleanup ==

The plugin provides tools for removing:

* Orphaned post meta records whose associated posts no longer exist.
* Orphaned user meta records whose associated users no longer exist.
* Post revisions.
* Auto-draft posts.
* Draft posts.
* Comments and associated comment meta.

Database operations performed by this plugin are permanent.

== Privacy ==

XCIXY Database Cleaner does not send website data to external services.

The plugin operates on the WordPress database installed on your website.

== Screenshots ==

1. Database Cleaner administration page with tools for cleaning orphaned metadata, removing revisions and drafts, deleting comments and related data, and removing selected unused database tables.

== Frequently Asked Questions ==

= Is a database backup recommended? =

Yes. Always create a complete database backup before performing database cleanup operations.

= Can deleted data be restored? =

No. The cleanup operations performed by the plugin are permanent. Restore the affected data from a database backup if necessary.

= Where is the plugin located in WordPress? =

The administration page is available under **Tools → XCIXY Database Cleaner**.

= Can I delete unused database tables? =

Only remove a table when you have verified that it is no longer used by WordPress, an installed plugin, a theme, or another application.

== Changelog ==

= 1.0 =

* Initial release.
* Added orphan post meta cleanup.
* Added orphan user meta cleanup.
* Added post revision cleanup.
* Added auto-draft cleanup.
* Added draft post cleanup.
* Added comment cleanup.
* Added database table detection and cleanup.

== License ==

XCIXY Database Cleaner is licensed under the GPLv2 or later.

This plugin is free software and may be redistributed and/or modified under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version.
