def METHOD_NAME(doc: Document):
    # Documents can reference paragraphs from other documents, which is why
    # usually you'd use get_referenced_document_ids to get all document IDs
    # Since we're deleting read marks here, it's better to be safe and only remove marks only
    # for paragraphs defined directly in the document
    get_clicked_readings_query(doc).delete(synchronize_session=False)