How to bulk delete translation strings I imported some translations using the locale update module but the translations are horrible and it would be better to revert to English.

How do I bulk delete all the imported translations in Drupal 8?

I found an issue on adding back the D7 translation string deletion option to the UI, but I want to mass delete all strings, not individual strings.

Drupal 7 version of this question

EDIT: Deleting the language is one approach, but I can't do that because I already have a lot of content translated into the language.  I want to keep the content that I have translated into the language, but delete all the user interface strings that were imported through localization update.
If you intend to remove ALL strings imported through interface translation, you could execute something like this:

// Replace the empty string with your target language code.
$langcode = '';
\Drupal::database()
  -&gt;delete('locales_target');
  -&gt;condition('language', $langcode)
  -&gt;condition('customized', 0)
  -&gt;execute();


You may also want to reset the source file history information, so - if you change your mind afterwards - you can re-import the very same translations:

\Drupal::database()
  -&gt;delete('locale_file')
  -&gt;condition('language', $langcode)
  -&gt;execute();


or

locale_translation_file_history_delete([], [$langcode]);


As the locale module is making heavy use of static caches, you may run above commands in a dedicated process as, e.g. Drush PHP CLI (drush php:cli).