Title: Error when bulk delete orders
Last modified: May 25, 2021

---

# Error when bulk delete orders

 *  [PeWu](https://wordpress.org/support/users/pewu/)
 * (@pewu)
 * [5 years ago](https://wordpress.org/support/topic/error-when-bulk-delete-orders/)
 * Hi,
 * I noticed this error when im was try to bulk delete some orders.
 *     ```
       [25-May-2021 09:43:18 UTC] PHP Fatal error:  Uncaught ErrorException: unlink(/home/luxvetco/weterynarz.online/wp-content/uploads/woocommerce-pdf-invoices/attachments/): Is a directory in /home/luxvetco/weterynarz.online/wp-includes/functions.php:6726
       Stack trace:
       #0 [internal function]: TypeRocket\Services\ErrorService->TypeRocket\Services\{closure}(2, 'unlink(/home/lu...', '/home/luxvetco/...', 6726, Array)
       #1 /home/luxvetco/weterynarz.online/wp-includes/functions.php(6726): unlink('/home/luxvetco/...')
       #2 /home/luxvetco/weterynarz.online/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(275): wp_delete_file('/home/luxvetco/...')
       #3 /home/luxvetco/weterynarz.online/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php(367): BEWPI_Abstract_Document::delete('/home/luxvetco/...')
       #4 /home/luxvetco/weterynarz.online/wp-content/plugins/woocommerce-pdf-invoices/includes/class-invoice.php(60): BEWPI_Abstract_Invoice::delete(6874)
       #5 /home/luxvetco/weterynarz.online/wp-includes/class-wp-hook.php( in /home/luxvetco/weterynarz.online/wp-includes/functions.php on line 6726
       ```
   
 * Im using latest plugin version and Woocommerce 4.7.0.

The topic ‘Error when bulk delete orders’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [PeWu](https://wordpress.org/support/users/pewu/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/error-when-bulk-delete-orders/)
 * Status: not resolved