Skip to content

Trashing and deleting data#

You can delete pieces of metadata from individual Neptune runs or objects, or trash entire Neptune objects.

Deleting metadata from objects#

You can delete metadata from runs or other Neptune objects by resuming a connection to it in your code and operating on the namespaces or fields you wish to delete.

  1. Resume the object with its init function and the with_id parameter:

    import neptune.new as neptune
    run = neptune.init_run(with_id="CLS-2")
    
  2. Use del or pop() to delete metadata:

    del run["datasets/dataset_too_large_to_store.csv"]
    

You can also override an existing field with something different, as long as it's of the same type.

Related

Trashing objects#

You can trash Neptune runs or other objects:

  • Through the app, by selecting the objects and clicking the trash icon ().
  • Through the API, with the trash_objects() method.

Trashed items remain in the project trash until manually emptied.

Related

For cleaning junk metadata locally, see neptune clear.