tlx/dynamodb/table.py
def clear_table(table):
    """ in Alpha

        - WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION !

        NOT TESTED with Primary and Sort Key Tables !!!
        TODO:
            - test on multikey tables
            - make cli app for it
    """

    table = get_ddb_table(table)
    ddb = table.meta.client

    table_keys = [key['AttributeName'] for key in table.key_schema]
    all_ids = ({key: r[key] for key in table_keys} for r in paginate(ddb.scan, TableName=table.name))
    batch_delete(table, all_ids)
 in Alpha

        - WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION !

        NOT TESTED with Primary and Sort Key Tables !!!
        TODO:
            - test on multikey tables
            - make cli app for it
    
in Alpha
WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION !

NOT TESTED with Primary and Sort Key Tables
TODO:
test on multikey tables
make cli app for it
in Alpha WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION ! NOT TESTED with Primary and Sort Key Tables TODO : test on multikey tables make cli app for it
def clear_table(table):
    table = get_ddb_table(table)
    ddb = table.meta.client
    table_keys = [key['AttributeName'] for key in table.key_schema]
    all_ids = ({key: r[key] for key in table_keys} for r in paginate(ddb.scan, TableName=table.name))
    batch_delete(table, all_ids)
def clear_table ( table ) : table = get_ddb_table ( table ) ddb = table . meta . client table_keys = [ key [ 'AttributeName' ] for key in table . key_schema ] all_ids = ( { key : r [ key ] for key in table_keys } for r in paginate ( ddb . scan , TableName = table . name ) ) batch_delete ( table , all_ids )
in Alpha
 WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION !
in Alpha WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION !
""" in Alpha

        - WILL IMMEDIATELY DELETE ALL ITEMS WITHOUT CONFIRMATION !

        NOT TESTED with Primary and Sort Key Tables !!!
        TODO:
            - test on multikey tables
            - make cli app for it
    """
table