clearActiveCommentCollection
Reset comment search to scan all YouTube comment collections by clearing the currently active collection filter.
Instructions
Clear the active comment collection so comment search fans back out across all comment collections.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that executes the clearActiveCommentCollection logic by deleting the active_comment_collection_id state from the database.
clearActiveCollection(): ClearActiveCommentCollectionOutput { const previousActiveCollectionId = this.getActiveCollectionId(); this.deleteAppState("active_comment_collection_id"); return { cleared: Boolean(previousActiveCollectionId), previousActiveCollectionId: previousActiveCollectionId ?? undefined, provenance: localProvenance(), }; }