{"id":36617,"date":"2026-02-09T01:29:50","date_gmt":"2026-02-08T18:29:50","guid":{"rendered":"https:\/\/dps.media\/huong-dan-xoa-ban-dich-translatepress-cho-mot-bai-viet-cu-the-reset-translation\/"},"modified":"2026-02-09T01:29:50","modified_gmt":"2026-02-08T18:29:50","slug":"translationsguide-to-delete-translatepress-translation-for-a-specific-post-reset-translation","status":"publish","type":"post","link":"https:\/\/dps.media\/en\/translationsguide-to-delete-translatepress-translation-for-a-specific-post-reset-translation\/","title":{"rendered":"Guide to Delete TranslatePress Translation for a Specific Post (Reset Translation)"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/images.unsplash.com\/photo-1555099962-4199c345e5dd?q=80&#038;w=2070&#038;auto=format&#038;fit=crop\" alt=\"Guide to Delete TranslatePress Translation for a Specific Post (Reset Translation)\" class=\"mcp-featured-embed\" title=\"\"><\/p>\n<h2>Issue: Translation is faulty or not updated<\/h2>\n<p>During the operation of a multilingual website with TranslatePress, sometimes you will encounter cases where the translation is faulty (for example: Chinese is displayed as Vietnamese) or you want to reset the entire translation of a specific post so that the AI translates it again from scratch.<\/p>\n<p>This post will guide you through 2 ways to completely delete the translation of any post (Post, Page, Product\u2026) without affecting other posts.<\/p>\n<h2>Method 1: Delete using SQL (Most Accurate)<\/h2>\n<p>This is the safest and most accurate method, helping you thoroughly delete data in the database.<\/p>\n<h3>Step 1: Find the Post ID<\/h3>\n<p>Access the WordPress admin page, go to the section <strong>Posts<\/strong> 5px <strong>Pages<\/strong>. Hover the mouse over the title of the post you want to process, look down at the browser's status bar, you will see the number <code>ID<\/code> (e.g.: <code>post=123<\/code>).<\/p>\n<h3>Step 2: Determine the post code and language table<\/h3>\n<ul>\n<li><strong>Post ID:<\/strong> For example, it is <code>123<\/code><\/li>\n<li><strong>Language code to delete:<\/strong> For example, Chinese (China) is usually <code>zh_cn<\/code>, English is <code>en_us<\/code>. The table name in the database will be in the form <code>wp_trp_dictionary_vi_zh_cn<\/code> (if translating from Vietnamese to Chinese).<\/li>\n<\/ul>\n<h3>Step 3: Run the SQL command<\/h3>\n<p>Open <strong>phpMyAdmin<\/strong> (or similar database management tool), find the website's database and run the following command:<\/p>\n<pre><code class=\"language-sql\">\n-- Replace '123' with your post ID\n-- Replace 'wp_trp_dictionary_vi_zh_cn' with the language table name you want to delete\nDELETE FROM `wp_trp_dictionary_vi_zh_cn` \nWHERE `original_id` IN (\n    SELECT `original_id` \n    FROM `wp_trp_original_meta` \n    WHERE `meta_key` = 'post_parent_id' \n    AND `meta_value` = '123'\n);\n<\/code><\/pre>\n<p>After running, the entire translation of that post will be deleted. You just need to go to the homepage and reload the page, the system will automatically translate it anew.<\/p>\n<hr \/>\n<h2>Method 2: Use PHP Code (Quick and Simple)<\/h2>\n<p>N\u1ebfu b\u1ea1n kh\u00f4ng r\u00e0nh v\u1ec1 database ho\u1eb7c kh\u00f4ng mu\u1ed1n \u0111\u1ee5ng v\u00e0o phpMyAdmin, b\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng \u0111o\u1ea1n code nh\u1ecf sau \u0111\u00e2y.<\/p>\n<h3>Step 1: Add code to functions.php<\/h3>\n<p>Open file <code>functions.php<\/code> of the active theme (Appearance -&gt; Theme Editor), and add this code to the end of the file:<\/p>\n<pre><code class=\"language-php\">\nadd_action('init', function() {\n    \/\/ Thay \u0111\u1ed5i s\u1ed1 123 th\u00e0nh ID b\u00e0i vi\u1ebft b\u1ea1n mu\u1ed1n x\u00f3a\n    $post_id_to_clean = 123; \n    \n    \/\/ Thay \u0111\u1ed5i th\u00e0nh m\u00e3 ng\u00f4n ng\u1eef b\u1ea1n mu\u1ed1n x\u00f3a (v\u00ed d\u1ee5: vi_zh_cn, vi_en_us)\n    $lang_pair = 'vi_zh_cn'; \n    \n    if (isset($_GET['clean_post_id']) &amp;&amp; $_GET['clean_post_id'] == $post_id_to_clean) {\n        global $wpdb;\n        $meta_table = $wpdb-&gt;prefix . 'trp_original_meta';\n        $dict_table = $wpdb-&gt;prefix . 'trp_dictionary_' . $lang_pair;\n        \n        \/\/ Ki\u1ec3m tra xem b\u1ea3ng c\u00f3 t\u1ed3n t\u1ea1i kh\u00f4ng\n        if ($wpdb-&gt;get_var(\"SHOW TABLES LIKE '$dict_table'\") != $dict_table) {\n            wp_die(\"B\u1ea3ng $dict_table kh\u00f4ng t\u1ed3n t\u1ea1i. H\u00e3y ki\u1ec3m tra l\u1ea1i m\u00e3 ng\u00f4n ng\u1eef.\");\n        }\n\n        \/\/ L\u1ea5y danh s\u00e1ch ID chu\u1ed7i thu\u1ed9c v\u1ec1 b\u00e0i vi\u1ebft n\u00e0y\n        $original_ids = $wpdb-&gt;get_col($wpdb-&gt;prepare(\n            \"SELECT original_id FROM $meta_table WHERE meta_key = 'post_parent_id' AND meta_value = %s\",\n            $post_id_to_clean\n        ));\n        \n        if (!empty($original_ids)) {\n            $ids_placeholder = implode(',', array_fill(0, count($original_ids), '%d'));\n            $wpdb-&gt;query($wpdb-&gt;prepare(\n                \"DELETE FROM $dict_table WHERE original_id IN ($ids_placeholder)\",\n                $original_ids\n            ));\n            echo \"\u0110\u00e3 x\u00f3a s\u1ea1ch b\u1ea3n d\u1ecbch cho b\u00e0i vi\u1ebft ID: \" . $post_id_to_clean;\n        } else {\n            echo \"Kh\u00f4ng t\u00ecm th\u1ea5y chu\u1ed7i n\u00e0o c\u1ea7n x\u00f3a ho\u1eb7c b\u00e0i vi\u1ebft ch\u01b0a \u0111\u01b0\u1ee3c d\u1ecbch.\";\n        }\n        exit;\n    }\n});\n<\/code><\/pre>\n<h3>Step 2: Run the delete command<\/h3>\n<p>After saving the file, access the following URL in your browser (log in as admin first):<\/p>\n<p><code>https:\/\/website-cua-ban.com\/?clean_post_id=123<\/code><\/p>\n<p>(Remember to replace <code>123<\/code> with the post ID you entered in the code).<\/p>\n<h3>Step 3: Delete the code<\/h3>\n<p>After seeing the message \u201cSuccessfully deleted translation\u2026\u201d, go back to the file <code>functions.php<\/code> and <strong>delete the code snippet just added<\/strong> for security and to keep the website lightweight.<\/p>\n<hr \/>\n<h2>Conclusion<\/h2>\n<p>Above are 2 methods to help you reset the translation for a specific post in TranslatePress. This is very useful when you change the original content too much or when the automatic translation is faulty.<\/p>\n<p>Wish you success!<\/p>\n<style>\r\n.lwrp.link-whisper-related-posts{\r\n            \r\n            margin-top: 40px;\nmargin-bottom: 30px;\r\n        }\r\n        .lwrp .lwrp-title{\r\n            \r\n            \r\n        }.lwrp .lwrp-description{\r\n            \r\n            \r\n\r\n        }\r\n        .lwrp .lwrp-list-container{\r\n        }\r\n        .lwrp .lwrp-list-multi-container{\r\n            display: flex;\r\n        }\r\n        .lwrp .lwrp-list-double{\r\n            width: 48%;\r\n        }\r\n        .lwrp .lwrp-list-triple{\r\n            width: 32%;\r\n        }\r\n        .lwrp .lwrp-list-row-container{\r\n            display: flex;\r\n            justify-content: space-between;\r\n        }\r\n        .lwrp .lwrp-list-row-container .lwrp-list-item{\r\n            width: calc(33% - 20px);\r\n        }\r\n        .lwrp .lwrp-list-item:not(.lwrp-no-posts-message-item){\r\n            \r\n            max-width: 150px;\r\n        }\r\n        .lwrp .lwrp-list-item img{\r\n            max-width: 100%;\r\n            height: auto;\r\n            object-fit: cover;\r\n            aspect-ratio: 1 \/ 1;\r\n        }\r\n        .lwrp .lwrp-list-item.lwrp-empty-list-item{\r\n            background: initial !important;\r\n        }\r\n        .lwrp .lwrp-list-item .lwrp-list-link .lwrp-list-link-title-text,\r\n        .lwrp .lwrp-list-item .lwrp-list-no-posts-message{\r\n            \r\n            \r\n            \r\n            \r\n        }@media screen and (max-width: 480px) {\r\n            .lwrp.link-whisper-related-posts{\r\n                \r\n                \r\n            }\r\n            .lwrp .lwrp-title{\r\n                \r\n                \r\n            }.lwrp .lwrp-description{\r\n                \r\n                \r\n            }\r\n            .lwrp .lwrp-list-multi-container{\r\n                flex-direction: column;\r\n            }\r\n            .lwrp .lwrp-list-multi-container ul.lwrp-list{\r\n                margin-top: 0px;\r\n                margin-bottom: 0px;\r\n                padding-top: 0px;\r\n                padding-bottom: 0px;\r\n            }\r\n            .lwrp .lwrp-list-double,\r\n            .lwrp .lwrp-list-triple{\r\n                width: 100%;\r\n            }\r\n            .lwrp .lwrp-list-row-container{\r\n                justify-content: initial;\r\n                flex-direction: column;\r\n            }\r\n            .lwrp .lwrp-list-row-container .lwrp-list-item{\r\n                width: 100%;\r\n            }\r\n            .lwrp .lwrp-list-item:not(.lwrp-no-posts-message-item){\r\n                \r\n                max-width: initial;\r\n            }\r\n            .lwrp .lwrp-list-item .lwrp-list-link .lwrp-list-link-title-text,\r\n            .lwrp .lwrp-list-item .lwrp-list-no-posts-message{\r\n                \r\n                \r\n                \r\n                \r\n            };\r\n        }<\/style>\r\n<div id=\"link-whisper-related-posts-widget\" class=\"link-whisper-related-posts lwrp\">\r\n            <div class=\"lwrp-title\">Related Posts<\/div>    \r\n        <div class=\"lwrp-list-container\">\r\n                                <div class=\"lwrp-list lwrp-list-row-container lwrp-list-double-row\">\r\n                <div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/7-money-losing-mistakes-when-running-facebook-ads-in-vn-that-few-experts-share-8\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">7 Mistakes \u201cBurning Money\u201d When Running Facebook Ads in Vietnam That Experts Rarely Share<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/what-are-the-benefits-of-seeding-marketing\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">What Are The Benefits Of Seeding Marketing?<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/christmas-eve-marketing-campaign-24-12-unique-meaningful\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Unique and meaningful Christmas Day Marketing Campaign 24\/12<\/span><\/a><\/div>                <\/div>\r\n                            <div class=\"lwrp-list lwrp-list-row-container lwrp-list-double-row\">\r\n                <div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/content-development-strategy-for-small-business-fanpage\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Content development strategy for a small business fan page<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/optimize-advertising-costs-on-facebook-with-just-5-steps\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Optimize Facebook advertising costs in just 5 steps<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/top-8-famous-graphic-design-companies-in-ho-chi-minh-city-hn\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Top 8 Famous Graphic Design Companies in Ho Chi Minh City - Hanoi\u00a0<\/span><\/a><\/div>                <\/div>\r\n                <\/div>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Issue: Translation is corrupted or not updated During the operation of a multilingual website with TranslatePress, sometimes you will encounter cases where the translation is corrupted (e.g., Chinese is displayed as Vietnamese) or you want to reset the entire translation of an article [\u2026]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36617","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"rankmath_keywords":{"primary":"","secondary":[""]},"yoast_keywords":{"primary":"","secondary":[]},"yoast_focuskw":"","rankmath_focuskw":"","seo_keywords":{"primary":"","secondary":[""]},"_links":{"self":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/36617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/comments?post=36617"}],"version-history":[{"count":1,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/36617\/revisions"}],"predecessor-version":[{"id":36618,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/36617\/revisions\/36618"}],"wp:attachment":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/media?parent=36617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/categories?post=36617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/tags?post=36617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}