SQL Flow Field Guide

DROP EVENT SESSION

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

removes event session (no row flow)

What changes

Input
catalog
Output or change
catalog: event session

Syntax at a glance

DROP EVENT SESSION event_session_name ON { SERVER | DATABASE }

Work example

An Extended Events session has completed its incident review and retention period.

Export required evidence, record session findings, and check that no alert depends on the session.

Check your work The evidence is preserved and no active monitoring rule references the removed session.

Open Microsoft Learn for full syntax, permissions, and details for your version.