SQL Flow Field Guide

sp_syscollector_delete_collection_set

Check SQL Server version support in the source

Deletes a user-defined collection set and all its collection items.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Deletes a user-defined collection set and all its collection items.

Syntax at a glance

dbo.sp_syscollector_delete_collection_set
    { [ @collection_set_id = ] collection_set_id
        | [ @name = ] N'name' }
[ ; ]

Work example

Deletes a user-defined collection set and all its collection items.

Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.

Check your work What can this procedure change or start, and what permission does it need?

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