Skip to content
Snippets Groups Projects

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Recommended modules
  • Installation
  • Configuration
  • FAQ
  • Maintainers

INTRODUCTION

The Node Revision Delete module lets you to track and prune old revisions of content types.

REQUIREMENTS

No special requirements.

RECOMMENDED MODULES

INSTALLATION

CONFIGURATION

  • Configure the module in Administration » Configuration » Content authoring » Node Revision Delete:

    • You can set how many revisions you want to delete per cron run and how often should revisions be deleted when cron runs. You can save the configuration and optionally start a batch job to delete old revisions for tracked content types. For this you need the ‘Administer Node Revision Delete’ permission.
  • Configure each content type in Administration » Structure » Content types » Content type name:

    • Under the Publishing options tab, mark “Limit the number of revisions for this content type” and set the maximum number of revisions to keep.
  • Drush commands

    • drush node-revision-delete

      Deletes old node revisions for a given content type.

    • drush nrd-delete-cron-run

      Configures how many revisions to delete per cron run.

    • drush nrd-last-execute

      Get the last time that the node revision delete was made.

    • drush nrd-set-time

      Configures the frequency with which to delete revisions when cron runs.

    • drush nrd-get-time

      Shows the frequency with which to delete revisions when cron runs.

    • drush nrd-when-to-delete-time

      Configures the time options for the inactivity time that the revision must have to be deleted.

    • drush nrd-minimum-age-to-delete-time

      Configures time options for the minimum age that the revision must be to be deleted.

    • drush nrd-delete-prior-revisions

      Delete all revisions prior to a revision.

FAQ

Q: How can I delete prior revisions?

A: When you are deleting a revision of a node, a new checkbox will appear in a fieldset saying: “Also delete X revisions prior to this one.”; if you check it, all prior revisions will be deleted as well for the given node. If you are deleting the oldest revision, the checkbox will not appear as no prior revisions are available.

MAINTAINERS

This project has been sponsored by:

  • Ville de Montréal
  • Lullabot
  • Sapient