Score:-2

Is there any `drush` command to delete any (previously exported) setting files?

cn flag

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

leymannx avatar
ne flag
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: https://www.drush.org/latest/commands/all/.
Score:3
cn flag

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.

Score:-2
cn flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.