async function getStaleStoragePools(prefix) {
  const projectId = await storagePoolsClient.getProjectId();
  const result = [];
  const currentDate = new Date();
  currentDate.setHours(currentDate.getHours() - 1);

  const aggListRequest = storagePoolsClient.aggregatedListAsync({
    project: projectId,
  });

  for await (const [zone, storagePoolsObject] of aggListRequest) {
    const storagePools = storagePoolsObject.storagePools;
    result.push(
      ...storagePools
        .filter(
          storagePool =>
            new Date(storagePool.creationTimestamp) < currentDate &&
            storagePool.name.startsWith(prefix)
        )
        .map(storagePool => {
          return {
            zone: zone.split('zones/')[1],
            storagePoolName: storagePool.name,
            timestamp: storagePool.creationTimestamp,
          };
        })
    );
  }
  return result;
}
Get storage pools created more than one hour ago.