DOCUMENTATION
/
Getting Started
Guides
Developer
Reference
Releases
Tutorials
Snowflake Open Catalog
Status
  1. Overview
    • Builders
    • Snowflake DevOps
      • Observability
        • Snowpark Library
        • Snowpark API
        • Machine Learning
        • Snowflake ML
        • Snowpark Code Execution Environments
        • Snowpark Container Services
        • Functions and procedures
        • Logging, Tracing, and Metrics
        • Snowflake APIs
        • Snowflake Python APIs
        • Snowflake REST APIs
        • SQL API
            1. Introduction
              • Endpoints
                • Authentication
                  • Submitting requests
                    • Handling responses
                      • Multiple statements
                        • Stored procedures
                          • Transactions
                            • Handling errors
                              • Query canceling
                                • SQL API reference
                                  • Deprecated functionality
                                • Apps
                                • Streamlit in Snowflake
                                • Snowflake Native App Framework
                                • Snowflake Native SDK for Connectors
                                • External Integration
                                • External Functions
                                • Kafka and Spark Connectors
                                • Snowflake Scripting
                                • Snowflake Scripting Developer Guide
                                • Tools
                                • Snowflake CLI
                                • Git
                                • Drivers
                                • Overview
                                • Considerations when drivers reuse sessions
                                  • Reference
                                  • API Reference
                                    DeveloperSQL APIQuery canceling

                                    Canceling the execution of a SQL statementΒΆ

                                    To cancel the execution of a statement, send a POST request to the cancel endpoint. See POST /api/v2/statements/{statementHandle}/cancel for details.

                                    POST /api/v2/statements/{statementHandle}/cancel
                                    
                                    Copy

                                    The following flow chart illustrates the steps that you take to cancel a request.

                                    Flow chart for cancelling the execution of a statement

                                    Was this page helpful?

                                    Visit Snowflake
                                    Join the conversation
                                    Develop with Snowflake
                                    Share your feedback
                                    Read the latest on our blog
                                    Get your own certification
                                    Privacy NoticeSite TermsΒ© 2025 Snowflake, Inc. All Rights Reserved.
                                    Language: English
                                    • English
                                    • FranΓ§ais
                                    • Deutsch
                                    • ζ—₯本θͺž
                                    • ν•œκ΅­μ–΄
                                    • PortuguΓͺs