Delete users and other objects with CX as Code

Hello,
I'm new to CX as Code and I'd like to know if (and how) I can delete from the GC organization some users listed in a txt file. I've found out how to create them but not how to delete (or modify) ...
Thanks
Riccardo

Hi Riccardo

Deleting users, or any other Genesys Cloud infrastructure, is only do-able via CX as Code when you are already managing them with Terraform i.e. when the user has been defined and applied as Terraform configuration. Modifying that user is then just a matter of editing that configuration file and re-applying.

To programmatically delete users that already exist, I would recommend looking at our SDKs such as our javascript sdk or our CLI tool.

I would also recommend checking out this forum announcement - Resources - CX as Code, which provides a bunch of very useful links which will help you to better understand Terraform and CX as Code.

Hope this helps,
Charlie