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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

malcomio created an issue. See original summary.

malcomio’s picture

Looking 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 or feeds-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.

MegaChriz’s picture

Title: Drush command to delete feeds items » Drush command to delete feeds items: feeds-clear

I 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.

malcomio’s picture

Status: Active » Needs review