{"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> or <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>If you are not familiar with the database or do not want to touch phpMyAdmin, you can use the following small code snippet.<\/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    \/\/ Change the number 123 to the ID of the post you want to delete\n    $TP4Tpost_id_to_clean = 123; \n    \n    \/\/ Change to the language code you want to delete (e.g., vi_zh_cn, vi_en_us)\n    $TP4Tlang_pair = 'vi_zh_cn'; \n    \n    if (isset($_GET['clean_post_id']) &amp;&amp; $_GET['clean_post_id'] == $TP4Tpost_id_to_clean) {\n        global $wpdb;\n        $TP4Tmeta_table = $wpdb-&gt;prefix . 'trp_original_meta';\n        $TP4Tdict_table = $wpdb-&gt;prefix . 'trp_dictionary_' . $TP4Tlang_pair;\n        \n        \/\/ Check if the table exists\n        if ($wpdb-&gt;get_var(\"SHOW TABLES LIKE '$TP4Tdict_table'\") != $TP4Tdict_table) {\n            wp_die(\"Table $TP4Tdict_table does not exist. Please check the language code again.\");\n        }\n\n        \/\/ Get the list of string IDs belonging to this post\n        $TP4Toriginal_ids = $wpdb-&gt;get_col($wpdb-&gt;prepare(\n            \"SELECT original_id FROM $TP4Tmeta_table WHERE meta_key = 'post_parent_id' AND meta_value = %d\",\n            $TP4Tpost_id_to_clean\n        ));\n        \n        if (!empty($TP4Toriginal_ids)) {\n            $TP4Tids_placeholder = implode(',', array_fill(0, count($TP4Toriginal_ids), '%d'));\n            $wpdb-&gt;query($wpdb-&gt;prepare(\n                \"DELETE FROM $TP4Tdict_table WHERE original_id IN ($TP4Tids_placeholder)\",\n                $TP4Toriginal_ids\n            ));\n            echo \"Successfully deleted translation for post ID: \" . $TP4Tpost_id_to_clean;\n        } else {\n            echo \"No strings found to delete or the post has not been translated yet.\";\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 small business fanpages<\/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>V\u1ea5n \u0111\u1ec1: B\u1ea3n d\u1ecbch b\u1ecb l\u1ed7i ho\u1eb7c kh\u00f4ng c\u1eadp nh\u1eadt Trong qu\u00e1 tr\u00ecnh v\u1eadn h\u00e0nh website \u0111a ng\u00f4n ng\u1eef v\u1edbi TranslatePress, \u0111\u00f4i khi b\u1ea1n s\u1ebd g\u1eb7p tr\u01b0\u1eddng h\u1ee3p b\u1ea3n d\u1ecbch b\u1ecb l\u1ed7i (v\u00ed d\u1ee5: ti\u1ebfng Trung b\u1ecb hi\u1ec3n th\u1ecb th\u00e0nh ti\u1ebfng Vi\u1ec7t) ho\u1eb7c b\u1ea1n mu\u1ed1n reset l\u1ea1i to\u00e0n b\u1ed9 b\u1ea3n d\u1ecbch c\u1ee7a m\u1ed9t b\u00e0i vi\u1ebft [&hellip;]<\/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}]}}