def METHOD_NAME(self, container):
    from maya import cmds
    # Get all members of the avalon container, ensure they are unlocked
    # and delete everything
    members = cmds.sets(container['objectName'], query=True)
    cmds.lockNode(members, lock=False)
    cmds.delete([container['objectName']] + members)
    # Clean up the namespace
    try:
        cmds.namespace(removeNamespace=container['namespace'],
                       deleteNamespaceContent=True)
    except RuntimeError:
        pass