Title: Delete empty fields
Last modified: April 2, 2024

---

# Delete empty fields

 *  Resolved [gramir](https://wordpress.org/support/users/gramir/)
 * (@gramir)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/delete-empty-fields/)
 * Hello
   It seems that empty fields from the csv file do not overwrite the already
   filled user fields in the database. I would like to delete empty fields from 
   the csv file, such as the Woocommerce billing address. Is there a way to do this?
   Thank you, Mirco

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/delete-empty-fields/#post-17547681)
 * Hi [@gramir](https://wordpress.org/support/users/gramir/),
 * Thank you for reaching out to us.
 * To overwrite existing fields in the database with empty fields from the import
   CSV file, you can use the following code snippet:
 *     ```wp-block-code
       add_filter('wt_user_import_empty_csv_column', '__return_true');
       ```
   
 * You may copy and paste the code snippet into your active theme’s function.php
   file or any code snippet plugins to achieve this.
 * If you wish to exclude certain fields, you can unmap them during the import process
   or delete them from the CSV file itself before importing.
 *  Thread Starter [gramir](https://wordpress.org/support/users/gramir/)
 * (@gramir)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/delete-empty-fields/#post-17548425)
 * Awesome, that worked great. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delete empty fields’ is closed to new replies.

 * ![](https://ps.w.org/users-customers-import-export-for-wp-woocommerce/assets/
   icon-256x256.gif?rev=3065206)
 * [Export and Import Users and Customers](https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [gramir](https://wordpress.org/support/users/gramir/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/delete-empty-fields/#post-17548425)
 * Status: resolved