The Django Database Purge management command is a tool for efficiently removing unwanted records from your Django project's database based on a specified retention policy. This command helps you keep your database clean and optimized by permanently deleting records that are no longer needed.
- Flexible Retention Policy: Define your own retention policy to determine which records should be purged from the database.
- Efficient Data Management: Easily manage the size of your database by removing outdated or unnecessary records.
- Customizable: Adapt the command to suit your project's specific requirements and database structure.
- Safe: Built-in safeguards to prevent accidental data loss, ensuring that only the intended records are purged.
To install Django Database Purge, simply add it to your Django project's INSTALLED_APPS
and run the management command.
pip install django-db-purge
After installation, use the management command to purge records from your database according to your specified retention policy.
python manage.py db_purge
For more advanced usage and customization options, refer to the documentation.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please submit an issue or pull request on GitHub.
This project is licensed under the MIT License.