Remove a string in all the languages Android Remove a string in all the languages Android xml xml

Remove a string in all the languages Android


You can remove all translations by "Translations Editor" in Android Studio.

  1. Select string's key
  2. Click on "Remove key" button
  3. Uncheck all checkboxes in "Delete" dialog
  4. Click "OK" button in "Delete" dialog

enter image description here


  1. CTRL-H
  2. select tab File Search
  3. check regular expression
  4. input \R\s*<string name="string_name">(.|\R)*?</string> anddon't forget replace string_name to actual string name.
  5. file name patterns set *.xml
  6. Press Replace...
  7. Leave replace field empty.
  8. Press Preview >
  9. Check all replacement.
  10. Apply changes by press `Ok'


default strings.xml file and automatically propagate the deletion to the other strings.xml file of other translations

ADT does not support this operation. You need to get rid of the text from all your XML files yourself, which should not be hard task anyway, as it would be sufficient to do project global search (in Eclipse CTRL-H), set file mask to *.xml and search for your string key. Then just remove this file from each file found.