@Superscope Internally, sessions are also datasets and the individual examples you’re annotating are linked to both a regular dataset and a session dataset (and potentially other datasets). If I remember correctly, Prodigy isn’t currently purging empty sessions automatically – but you should be able to delete them just like regular datasets, by using the session name (timestamp).
Alternatively, you can also write a custom Python script that retrieves and checks the sessions and deletes them (e.g. if they’re empty or were created before a certain date etc.). Here’s an example (untested, but should work):
from prodigy.components.db import connect
db = connect() # uses settings from your prodigy.json
for session in db.sessions:
# Remove session if it's empty – or implement your own
# custom logic here
examples = db.get_dataset(session)
if not examples:
db.drop_dataset(session)
For more details on the Python API, check out the Database
docs in your PRODIGY_README.html
.