Removing data#

After you’re done with the model setup, you can instantly delete your raw data using j.delete_raw_data.

>>> # Delete the raw data inputed as it won't be needed anymore
>>> j.delete_raw_data(name='your_collection_name')

If you no longer need the model or anything else related to your database, you can use j.delete_database to remove your collection from your JAI environment.

>>> j.delete_database(name='your_collection_name')

On the other hand, if you just need to remove some ids from your collection, you can use j.delete_ids to perform this action.

>>> j.delete_ids(name='your_collection_name', ids=[1, 2, 3, 4, 5])

See the package reference for more information.