diff --git a/django/core/management/commands/cleanup.py b/django/core/management/commands/cleanup.py deleted file mode 100644 index e158ebb541..0000000000 --- a/django/core/management/commands/cleanup.py +++ /dev/null @@ -1,11 +0,0 @@ -import warnings - -from django.contrib.sessions.management.commands import clearsessions - - -class Command(clearsessions.Command): - def handle_noargs(self, **options): - warnings.warn( - "The `cleanup` command has been deprecated in favor of `clearsessions`.", - DeprecationWarning) - super(Command, self).handle_noargs(**options) diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index c2c11e6db4..caee368e63 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -102,18 +102,6 @@ is compatible with the current version of Django. Upon finding things that are incompatible or require notifying the user, it issues a series of warnings. -cleanup -------- - -.. django-admin:: cleanup - -Can be run as a cronjob or directly to clean out old data from the database -(only expired sessions at the moment). - -.. versionchanged:: 1.5 - - :djadmin:`cleanup` is deprecated. Use :djadmin:`clearsessions` instead. - compilemessages --------------- diff --git a/docs/releases/1.5-beta-1.txt b/docs/releases/1.5-beta-1.txt index 57b13ea6ce..a1c9edd890 100644 --- a/docs/releases/1.5-beta-1.txt +++ b/docs/releases/1.5-beta-1.txt @@ -689,7 +689,7 @@ framework. ``cleanup`` management command ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The :djadmin:`cleanup` management command has been deprecated and replaced by +The ``cleanup`` management command has been deprecated and replaced by :djadmin:`clearsessions`. ``daily_cleanup.py`` script diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt index a1b046776b..2bb3095297 100644 --- a/docs/releases/1.5.txt +++ b/docs/releases/1.5.txt @@ -788,7 +788,7 @@ the built-in :func:`itertools.product` instead. ``cleanup`` management command ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The :djadmin:`cleanup` management command has been deprecated and replaced by +The ``cleanup`` management command has been deprecated and replaced by :djadmin:`clearsessions`. ``daily_cleanup.py`` script