SQL Flow Field Guide

DROP PARTITION FUNCTION

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

removes partitioning metadata

What changes

Input
catalog
Output or change
partition function (boundary values) or scheme (filegroup map)

Syntax at a glance

DROP PARTITION FUNCTION partition_function_name [ ; ]

Work example

A partition function is retired after all tables move to another layout.

Find partition schemes and indexes that depend on the function before removal.

Check your work No partition scheme refers to the function and the replacement keeps all data ranges.

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