def deleteSecrets(name, region='us-east-1', table='credential-store'):
    dynamodb = boto3.resource('dynamodb', region_name=region)
    secrets = dynamodb.Table(table)
    response = secrets.scan(FilterExpression=boto3.dynamodb.conditions.Attr('name').eq(name), ProjectionExpression='#N, version', ExpressionAttributeNames={'#N': 'name'})
    for secret in response['Items']:
        print(('Deleting %s -- version %s' % (secret['name'], secret['version'])))
        secrets.delete_item(Key=secret)
def deleteSecrets(name, region='us-east-1', table='credential-store'):
    dynamodb = boto3.resource('dynamodb', region_name=region)
    secrets = dynamodb.Table(table)
    response = secrets.scan(FilterExpression=boto3.dynamodb.conditions.Attr('name').eq(name), ProjectionExpression='#N, version', ExpressionAttributeNames={'#N': 'name'})
    for secret in response['Items']:
        print(('Deleting %s -- version %s' % (secret['name'], secret['version'])))
        secrets.delete_item(Key=secret)