Listing and deleting outputs

An output is a parsed document generated by the system. You can access the output through the job abstraction.

Listing Jobs

You can list all the jobs in a project using the following API call:

from tensorlake.documentai import DocumentAI, FileInfo
doc_ai = DocumentAI(api_key="xxxx")

jobs_page = doc_ai.jobs()

Deleting generated outputs

The generated data can be removed by deleting the job returned by the system.

from tensorlake.documentai import DocumentAI, FileInfo
doc_ai = DocumentAI(api_key="xxxx")
doc_ai.delete_job(job_id="job-XXX")