SvnAliases.

SvnDeleteFile(ICakeContext, FilePath, SvnDeleteSettings) Method

Summary

Delete a file from Subversion.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static bool SvnDeleteFile(this ICakeContext context, FilePath file, SvnDeleteSettings settings)

Examples

Delete a file from Subversion.

 var svnDeleteSettings =  new SvnDeleteSettings
     {
         Force = true
     };

     var fileRemoved = SvnDeleteFile(@"C:\project\src\newfile.cs", svnDeleteSettings);

     Verbose("File removed: {0}", fileRemoved);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The Cake context.
file FilePath The file.
settings SvnDeleteSettings The settings.

Return Value

Type Description
bool true if the command was successful. Otherwise false will be returned.