right now it should be deleted one by one from lowest hierarchy. so its hectic to delete it one by one after many people and areas are created.
I don’t think we currently have a way of cascading deletes across a hierarchy of contacts.
I believe there already is a feature request that tracks this:
You’re very welcome to share your use-case here, or on the issue, so we can have a clearer idea of how to prioritize this.
Thanks!
Hello,
Did you find a workaround for this?
Is it possible to get an api that will help me query the places using external id?
Good news! The latest version of cht-conf now includes the delete-contacts action:
When combined with ‘upload-docs’ this action recursively deletes a contact and all of their descendant contacts and data. This operation is permanent. It cannot be undone.
USAGE
cht --local delete-contacts – --contacts=id1,id2OPTIONS
–contacts=id1,id2 (or --contact=id1,id2)
A comma delimited list of ids of contacts to be deleted.–disable-users
When flag is present, users at any deleted place will be permanently disabled.–docDirectoryPath=path to stage docs
Specifies the folder used to store the documents representing the changes in >hierarchy.