Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently you can enable or disable a rule via drush but it would be good to add delete and revert.
Technically they will both do the same thing however it would be good to have both as commands as it is useful to know the intention from the command.
Comment | File | Size | Author |
---|---|---|---|
#6 | drush-revert-delete.patch | 2.96 KB | TR |
Comments
Comment #1
rcross CreditAttribution: rcross at CrossFunctional commented+1 anyone got an alternative way to delete or revert a rule programmatically?
Comment #2
rooby CreditAttribution: rooby commentedI use this:
Comment #3
luizsgpetri CreditAttribution: luizsgpetri at CI&T commentedI did rules_config_delete(array('rules_test_add_to_cart'));
Comment #4
TR CreditAttribution: TR commentedProvide a patch and we can add this feature...
Comment #5
TR CreditAttribution: TR commentedComment #6
TR CreditAttribution: TR commentedOK, this was easy so I just did it myself. Too bad someone didn't contribute this years ago - it only took 10 minutes to code and test but could have saved a lot of people a lot of time.
Comment #8
TR CreditAttribution: TR commentedCommitted.