code: def delete_all_but_self(self):
          
          prefix = self.settings.alias
          name = self.settings.index
  
          if prefix == name:
              Log.note("{{index_name}} will not be deleted",  index_name= prefix)
          for a in self.cluster.get_aliases():
              # MATCH <prefix>YYMMDD_HHMMSS FORMAT
              if re.match(re.escape(prefix) + "\\d{8}_\\d{6}", a.index) and a.index != name:
                  self.cluster.delete_index(a.index)
docs: DELETE ALL INDEXES WITH GIVEN PREFIX, EXCEPT name