--- title: "Cancelation" slug: "cancelation" updated: 2025-06-13T14:18:15Z published: 2025-06-13T14:18:15Z canonical: "docs.xgen.ai/cancelation" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.xgen.ai/llms.txt > Use this file to discover all available pages before exploring further. # Cancelation ## Instance methods | **Method** | **Description** | | --- | --- | | xg.cancelAll() | Cancels all pending requests. | | xg.cancel(cancelKey) | Cancels single request by its cancellation token key. |