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.
Problem/Motivation
It would be useful to have a drush command to delete all items for a specific feed.
It seems like a similar command was proposed as feeds-clear
in #608408: Drush integration for Feeds
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork feeds-3380563
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
malcomio CreditAttribution: malcomio at Capgemini commentedLooking at the history of #3060930: Add Drush 9 commands in Feeds 8.x-3.x, it seems like there was a decision not to port
feeds-clear
orfeeds-delete
, but the use case I'm thinking of is a quick way to delete the items imported via the feed.This exists via the UI, so adding it in Drush would be useful.
Comment #3
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedI think that "feeds-clear" was meant to be provided as a Drush command in #3060930: Add Drush 9 commands in Feeds 8.x-3.x, but it was overlooked. So I'm totally fine with if that command would be added here (preferable with automated tests).
The command "feeds-delete" looks to be not so useful because there's already "config:delete" and "entity:delete" as I say in #3060930-11: Add Drush 9 commands in Feeds 8.x-3.x.
Comment #5
malcomio CreditAttribution: malcomio at Capgemini commented