The script can be accessed here.
This script queries all cloud connect tenant resources that aren’t active and returns metrics on them to help find orphaned resources that can be deleted, based on tenants. Simply edit the API token on line 27 and the VSPC base URL on line 33.
Resource Information Returned:
Tenant Name
Cloud Connect Server
Backup Storage Used
Replication Storage Used
Replication Memory Used
Replication vCPUs Consumed