Title: Add/delete/remove/sync users
Last modified: February 25, 2020

---

# Add/delete/remove/sync users

 *  Resolved [futurion](https://wordpress.org/support/users/futurion/)
 * (@futurion)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete-remove-users/)
 * Dear developer,
 * I have a particular question in regards to removing, deleting or better said 
   synchronizing users from CSV files to wordpress. Let’s say in my case I have 
   another mysql database which is a “master” database with all users data. I export
   this data to .csv files periodically and I want so sync this exported data to
   my wordpress page. What I would like to achieve is having at every moment the
   exact same situation inside wordpress as it is currently inside the master database.
 * For instance, when making first import to wordpress, I have 600 users inside 
   master database. All these users are exported to CSV, then imported into wordpress,
   everything ok. With next import I have only 550 users still in the master database,
   some are new, some old, which means that some users have to be updated inside
   wordpress, some added as new, and some removed, because they don’t exist anymore
   inside master. Is this somehow doable with your plugin?
 * For now, the only way to achieve this in my opinion is to delete completely all
   wordpress users, and then import all of them again from CSV. This is of course
   not good in all cases, especially when some users make some changes to their 
   existing accounts.
 * What do you suggest would be the best option to achieve this?
 * Kind regards, Tomaz.
    -  This topic was modified 6 years, 3 months ago by [futurion](https://wordpress.org/support/users/futurion/).

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

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete-remove-users/#post-12477888)
 * Tomaz,
 * Good afternoon, yes this is doabled with this plugin.
 * The best idea for this problem is:
    - Use the cron task
    - In the master, create a CSV and place it somewhere the plugin can read
    - Make the plugin delete not appearing users in the CSV
    - Plugin will also update users there and create new ones
    - You will have a log about how execution run
 * Much users are using this functionality to do this kind of syncs.
 * Any other question, please let me know.
 *  Thread Starter [futurion](https://wordpress.org/support/users/futurion/)
 * (@futurion)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete-remove-users/#post-12484455)
 * Hello Mr. Carazo,
 * thank you for this brief explanation. The process you described does exactly 
   what I need to do, even better is that it can be also done with cron task. That’s
   actually perfect!
 * I will do some extensive tests with CSV imports from master mysql DB and if I
   run into any kind of issues, I’ll report back.
 * Thank you for now and kind regards from me!
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete-remove-users/#post-12484586)
 * If you have any problem, let us know.
 * Thanks!
 *  [Damodar Bashyal](https://wordpress.org/support/users/dbashyal/)
 * (@dbashyal)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete-remove-users/#post-12489710)
 * Delete user if not present in CSV is not working for me. I tried both cron & 
   admin. I just updated to latest plugin and still same issue.

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

The topic ‘Add/delete/remove/sync users’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Damodar Bashyal](https://wordpress.org/support/users/dbashyal/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/delete-remove-users/#post-12489710)
 * Status: resolved