I don't think this logic is right - doesn't seem to delete the checkpoints when deleting a notebook.