This project is not covered by Drupal’s security advisory policy.

Provides method to delete specific revision of commerce product:
commerce_product_revision_delete_do_delete($revision_id, $do_check_current = TRUE)

Provides Views integration adding "Delete" link to each revision on product revisions page.

Provides VBO integration implementing "Remove old revisions" action that can be configured to keep given number of revisions and period in months for latest revision to keep intact.

Provides Tokens integration adding "num-revisions" token to product type.

Provides Rules integration adding condition to evaluate the number of product revisions and action to delete specified number of latest product's revisions.
Rule configuration added to be called after each product update (when presumably all new product revisions are created) to check the number of revisions against 500 and delete 20 latest if more of them found. This rule is disabled by default.

Basically addresses this issue #2660056: Provide function to delete product revisions in a separate module.
The method to delete revision is taken from this answer on stackexchange.

Supporting organizations: 
Sponsored

Project information

Releases