Delete 1000 TEIs in a certain org. unit at once

Hello guys,
So I have registered like say 1000 persons as TEIs in a certain org. unit and I want to delete them all once. How is that possible? deleting one by one is tiresome

Hi @Eris_Vinn,
May I ask how did you get to register all 1000 persons in this Org Unit? Manually? I’m thinking of the following ways but I’ve not tried anyone of these:

  1. Using the Import/Export app, export all the TEIs and then import them again but choosing ‘DeleteRemove values included in uploaded file’
  2. Using an API script to delete the TEIs (or to transfer TEIs to different Org Units?)
  3. If you have access to the database using a script to delete Using an API script to delete the TEIs(or to transfer TEIs to different Org Units?)

When importing, do i populate my TEIs in a template generated from the system or i can use any excel template?

@Eris_Vinn,
Please use the Import/Export app by first exporting the JSON file with the list of all the TEIs that you want to delete from this org unit and then importing it with the delete option.

@Eris_Vinn I tested again on play and it’s working fine, you can test this process there as well before you start. Feel free to post back to the community if anything comes up!

Thanks!