Removes the specified SQL Server Express LocalDB instance.
Header file: sqlncli.h
[Input] The name of the LocalDB instance to remove.
[Input] Reserved for future use. Currently should be set to 0.
The function succeeded.
SQL Server Express LocalDB is not installed on the computer.
One or more specified input parameters are invalid.
The specified instance name is invalid.
The specified instance does not exist.
The specified instance is running.
A time-out occurred while trying to acquire synchronization locks.
The path where the instance should be stored is longer than MAX_PATH.
A user profile folder cannot be retrieved.
An instance folder cannot be accessed.
An instance registry cannot be accessed.
An instance registry cannot be modified.
An instance configuration is corrupted.
API caller is not Local Database instance owner.
An unexpected error occurred. See the event log for details.
For a code sample that uses LocalDB API, see SQL Server Express LocalDB Reference.