/file_deleter

Drupal module: Deletes files provided by a csv file

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Drupal File Deleter Modul

Deletes files provided by a CSV file.

Requirements

  • Drupal 9 | 10
  • Drush >9

Installation

Usage

  • Create a CSV file with the file paths including the prefixed stream wrapper. There should be one file in each row. E.g. public://path_to_file/file.ext

  • Name the CSV file delete.csv and copy it to the public file path.

  • Execute the Drush command drush file-deleter:run.

  • The files will be deleted. Files that are not deleted are logged.