LocalDBDeleteInstance

07/14/2025 Removes the specified SQL Server Express LocalDB instance. C++ [Input] The name of the LocalDB instance to remove. [Input] Reserved for future use.

Removes the specified SQL Server Express LocalDB instance.

C++

[Input] The name of the LocalDB instance to remove.

[Input] Reserved for future use. Currently should be set to 0.

: The function succeeded.

Description

LOCALDB_ERROR_NOT_INSTALLED

Express LocalDB isn’t installed on

the computer.

LOCALDB_ERROR_INVALID_PARAMETER

One or more specified input parameters are

invalid.

Expand table

msoledbsql.h
S_OK
HRESULT
LocalDBDeleteInstance (
PCWSTR pInstanceName ,
DWORD dwFlags
);