{"id":8039,"date":"2026-05-08T13:56:19","date_gmt":"2026-05-08T11:56:19","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8039"},"modified":"2026-05-08T13:56:20","modified_gmt":"2026-05-08T11:56:20","slug":"cum-sa-stergeti-o-comanda-in-prestashop","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/","title":{"rendered":"Cum s\u0103 \u0219terge\u021bi o comand\u0103 \u00een PrestaShop"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Managing your order history is a standard part of running an e-commerce store. However, by default, PrestaShop does not allow for the complete deletion of orders through the standard administration panel. This is a deliberate security and accounting feature designed to maintain a consistent transaction log and prevent accidental data loss.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/#Why_PrestaShop_Restricts_Order_Deletion\" >Why PrestaShop Restricts Order Deletion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/#Method_1_Changing_Order_Status_The_Recommended_Way\" >Method 1: Changing Order Status (The Recommended Way)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/#Method_2_Using_a_Module_The_Efficient_Way\" >Method 2: Using a Module (The Efficient Way)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/#Method_3_Using_PrestaShop_Cleaner_For_Test_Data\" >Method 3: Using PrestaShop Cleaner (For Test Data)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/#Method_4_Manual_Deletion_via_Database_Advanced\" >Method 4: Manual Deletion via Database (Advanced)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-delete-an-order-in-prestashop\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_PrestaShop_Restricts_Order_Deletion\"><\/span>Why PrestaShop Restricts Order Deletion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Accounting Integrity:<\/strong> In many jurisdictions, maintaining a continuous record of orders and invoices is a legal requirement.<\/li>\n\n\n\n<li><strong>Database Consistency:<\/strong> Orders are linked to customers, products, and statistics. Removing an order manually can sometimes cause discrepancies in your sales reports.<\/li>\n\n\n\n<li><strong>Security:<\/strong> Restricting deletion ensures that employees or unauthorized users cannot &#8220;erase&#8221; traces of transactions.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Changing_Order_Status_The_Recommended_Way\"><\/span>Method 1: Changing Order Status (The Recommended Way)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Instead of deleting an order, the best practice is to change its status. This removes it from your &#8220;active&#8221; workflow while preserving the data for your records.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to your PrestaShop Back Office.<\/li>\n\n\n\n<li>Navigate to <strong>Orders > Orders<\/strong>.<\/li>\n\n\n\n<li>Click on the specific order you wish to handle.<\/li>\n\n\n\n<li>In the <strong>Status<\/strong> section, select <strong>&#8220;Canceled&#8221;<\/strong> or <strong>&#8220;Payment Error&#8221;<\/strong> from the dropdown menu.<\/li>\n\n\n\n<li>Click <strong>Update Status<\/strong>.<\/li>\n<\/ol>\n\n\n\n<\/div>\n\n<div id=\"mybox-2489447626\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">This approach ensures your stock levels are adjusted correctly and the order no longer appears in your active sales figures.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Using_a_Module_The_Efficient_Way\"><\/span>Method 2: Using a Module (The Efficient Way)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you frequently need to remove test orders or duplicate entries, using a specialized module is the safest and most efficient method.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Go to <strong>Modules > Module Catalog<\/strong>.<\/li>\n\n\n\n<li>Search for <strong>&#8220;Delete Orders&#8221;<\/strong>.<\/li>\n\n\n\n<li>Install a reputable module designed for this purpose.<\/li>\n\n\n\n<li>Once installed, these modules typically add a &#8220;Delete&#8221; icon next to each order in your list, allowing for a one-click removal that also cleans up associated data (like invoices and cart rules).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Using_PrestaShop_Cleaner_For_Test_Data\"><\/span>Method 3: Using PrestaShop Cleaner (For Test Data)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you are still in the development phase on your <strong>mybox-hosted<\/strong> account and want to wipe all test orders before going live:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Navigate to <strong>Modules > Module Manager<\/strong>.<\/li>\n\n\n\n<li>Find the <strong>&#8220;PrestaShop Cleaner&#8221;<\/strong> module (often pre-installed).<\/li>\n\n\n\n<li>Under the &#8220;Orders and Customers&#8221; section, click <strong>&#8220;Delete orders &amp; customers&#8221;<\/strong>.<\/li>\n\n\n\n<li><strong>Warning:<\/strong> This will permanently erase <em>all<\/em> orders and customers from your database. Use this only if you are starting fresh.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_4_Manual_Deletion_via_Database_Advanced\"><\/span>Method 4: Manual Deletion via Database (Advanced)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For technical users, orders can be removed directly through the <strong>mybox panel<\/strong> using <strong>phpMyAdmin<\/strong>.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open <strong>phpMyAdmin<\/strong> from your dashboard.<\/li>\n\n\n\n<li>Locate the tables starting with <code>ps_orders<\/code>, <code>ps_order_detail<\/code>, and <code>ps_order_history<\/code>.<\/li>\n\n\n\n<li>Execute a SQL query or manually delete the specific ID rows. <em>Note: This is risky and can lead to database errors if not done carefully. Always create a backup in the <strong>mybox panel<\/strong> before performing manual database edits.<\/em><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">While PrestaShop prioritizes the permanence of transaction records, you have several ways to manage your list. Whether you simply change the status to &#8220;Canceled&#8221; or use a module to purge test data, keeping your <strong>mybox-hosted<\/strong> store&#8217;s order list organized ensures clear reporting and efficient management.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[8671,8672,8673,8674,8675,8676,8677,8678,8679,8680,8681,8682,445,8683,3163,8684,5625,8669,8670],"class_list":["post-8039","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-delete-orders-module","manual_kb_tag-change-order-status","manual_kb_tag-cancel-order","manual_kb_tag-payment-error","manual_kb_tag-manage-order-history","manual_kb_tag-ecommerce-store","manual_kb_tag-prestashop-order-deletion","manual_kb_tag-delete-orders-prestashop","manual_kb_tag-how-to-delete-an-order-in-prestashop","manual_kb_tag-change-order-status-prestashop","manual_kb_tag-cancel-order-prestashop","manual_kb_tag-payment-error-status","manual_kb_tag-prestashop","manual_kb_tag-prestashop-module-delete-orders","manual_kb_tag-order-management","manual_kb_tag-prestashop-cleaner","manual_kb_tag-prestashop-back-office","manual_kb_tag-delete-order","manual_kb_tag-order-deletion"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8039\/revisions"}],"predecessor-version":[{"id":8040,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8039\/revisions\/8040"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=8039"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8039"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=8039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}