How delete detached database from disk using T-SQL? I want to delete a detached database from my hard disk. What should I do in T-SQL? I want to create a database with the same name and I get this error in Microsoft SQL Server 2014 Management Studio:
Cannot create file 'H:...\Restaurant_Data.mdf' because it already exists. Change the file path or the file name, and retry the operation.