Remove Method

SQLServer.Device Object

Description

Drops the SQL Server database or dump device and removes the Device object. For a database device, if any databases are using any space on the device, the database device cannot be removed.

Visual Basic

Device.Remove

C++

HRESULT pDevice->Remove ( );

Reference

sp_dropdevice