code: public function deleteTemplateHintsDbConfigs()
      {
          $configTable = Mage::getResourceModel('core/config')->getMainTable();
  
          /** @var Magento_Db_Adapter_Pdo_Mysql $db */
          $db = Mage::getSingleton('core/resource')->getConnection('core_write');
          $db->delete($configTable, "path like 'dev/debug/template_hints%'");
      }
docs: Delete template_hints related configurations