-2

Can we use drush to simply delete any (previously exported) config-directory files?

1
  • 1
    Why Drush? What exactly do you mean by previously exported? Like all of them? Or particular chunks like a git status would bring up after running the export command on a clean git tree? There's also a list of all available Drush core commands: drush.org/latest/commands/all.
    – leymannx
    Commented Feb 25, 2022 at 12:19

2 Answers 2

3

Exported config files are regular files. So, if you want to delete them, you can delete them like you would any other file-- either use your operating system's file manager, or use the command line.

There is no need for drush to support this because every operating system offers robust support for deleting directories of files.

-2

No.

Simpy use your your operating system's file-browser to delete manually, there will be no issue (nothing depends on those files, except maybe importing).

Althoug, each time we export configurations, the old configuration files will be all deleted automatically, and new files get created based on database (where the old files were).

Note that not even drush cdel is up to the task, because cdel takes configuration object as input argument, and deletes it (from the active configuration) in the database, not the exported .yml files.

Not the answer you're looking for? Browse other questions tagged or ask your own question.