LocalDbAliases.

LocalDbDeleteInstance(ICakeContext, string) Method

Summary

Deletes the LocalDB instance
Assembly
Cake.SqlServer.dll
Namespace
Cake.SqlServer
Containing Type
LocalDbAliases

Syntax

public static void LocalDbDeleteInstance(this ICakeContext context, string instanceName)

Examples

    #addin "nuget:?package=Cake.SqlServer"

    Task("Delete-LocalDB")
         .Does(() =>
         {
            LocalDbDeleteInstance("Cake-Test");
        });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext Cake context
instanceName string Instance name to delete

Return Value

Type Description
void