diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 2eb5a61e3fc6f09a6f5c62ea69a46d1338dff918..3f96454e8de3bc03093a9ed20bc97bd24bef8d77 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -1037,7 +1037,7 @@ class Expedition extends CommonObject } if (file_exists($dir)) { - if (!dol_delete_dir($dir)) + if (!dol_delete_dir_recursive($dir)) { $this->error=$langs->trans("ErrorCanNotDeleteDir",$dir); return 0;