How to use the tiledb.remove function in tiledb

To help you get started, we’ve selected a few tiledb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_object_remove.py View on Github external
def main():
    ctx = tiledb.Ctx()

    # Delete
    tiledb.remove(ctx, "my_group")
    tiledb.remove(ctx, "my_dense_array")
    try:
        tiledb.remove(ctx, "invalid_path")
    except tiledb.TileDBError:
        print("Failed to delete invalid path")
github TileDB-Inc / TileDB-Py / examples / errors.py View on Github external
#
# This example shows how to catch errors in TileDB.
#

import tiledb

# Catch an error
try:
    tiledb.group_create("my_group")
    tiledb.group_create("my_group")
except tiledb.TileDBError as e:
    print("TileDB exception: %s" % e.message)

# clean up
if tiledb.VFS().is_dir("my_group"):
    tiledb.remove("my_group")
github TileDB-Inc / TileDB-Py / examples / object.py View on Github external
tiledb.walk(path, lambda obj_path, obj_type: print(obj_path, obj_type), order="postorder")


def move_remove_obj():
    tiledb.move(path("my_group"), path("my_group_2"))
    tiledb.remove(path("my_group_2/dense_arrays"))
    tiledb.remove(path("my_group_2/sparse_arrays/array_C"))


create_hierarchy()
list_obj("my_group")
move_remove_obj()  # Renames 'my_group' to 'my_group_2'
list_obj("my_group_2")

# clean up
tiledb.remove("my_group_2")
github TileDB-Inc / TileDB-Py / examples / object.py View on Github external
def move_remove_obj():
    tiledb.move(path("my_group"), path("my_group_2"))
    tiledb.remove(path("my_group_2/dense_arrays"))
    tiledb.remove(path("my_group_2/sparse_arrays/array_C"))
github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_object_remove.py View on Github external
def main():
    ctx = tiledb.Ctx()

    # Delete
    tiledb.remove(ctx, "my_group")
    tiledb.remove(ctx, "my_dense_array")
    try:
        tiledb.remove(ctx, "invalid_path")
    except tiledb.TileDBError:
        print("Failed to delete invalid path")
github TileDB-Inc / TileDB-Py / examples / libtiledb / tiledb_object_remove.py View on Github external
def main():
    ctx = tiledb.Ctx()

    # Delete
    tiledb.remove(ctx, "my_group")
    tiledb.remove(ctx, "my_dense_array")
    try:
        tiledb.remove(ctx, "invalid_path")
    except tiledb.TileDBError:
        print("Failed to delete invalid path")