public static void main(String[] args) {
    String commandName = AzureTokenResetTool.class.getSimpleName();
    try {
      VerifiableProperties verifiableProperties = ToolUtils.getVerifiableProperties(args);
      String clusterName = verifiableProperties.getString(ClusterMapConfig.CLUSTERMAP_CLUSTER_NAME);
      CloudConfig cloudConfig = new CloudConfig(verifiableProperties);
      AzureCloudConfig azureCloudConfig = new AzureCloudConfig(verifiableProperties);
      AzureMetrics azureMetrics = new AzureMetrics(new MetricRegistry());
      AzureBlobLayoutStrategy blobLayoutStrategy = new AzureBlobLayoutStrategy(clusterName, azureCloudConfig);
      AzureBlobDataAccessor dataAccessor =
          new AzureBlobDataAccessor(cloudConfig, azureCloudConfig, blobLayoutStrategy, azureMetrics);
      storageAsyncClient = dataAccessor.getStorageClient();

      int tokensDeleted = resetTokens(clusterName);
      logger.info("Deleted tokens for {} partitions", tokensDeleted);
    } catch (Exception ex) {
      ex.printStackTrace();
      logger.error("Command {} failed", commandName, ex);
      System.exit(1);
    }
  }
Utility to delete the replica tokens for all partitions.
Very dangerous tool.  Please know what you're doing and wear a hard hat at all times.
Required properties:
 - "azure.storage.connection.string" for the storage account.
 - "cosmos.endpoint", "cosmos.database", "cosmos.collection" , "cosmos.key" (set to any nonempty value)
 - "clustermap.cluster.name" used to restrict blob container name search (e.g. "main-123")
Optional properties:
 - "vcr.proxy.host" name of the proxy host to tunnel through.
 - "azure.blob.container.strategy" if the account is sharded by container instead of partition.
ambry-tools/src/main/java/com/github/ambry/tools/admin/AzureTokenResetTool.java