delete SVN Command

How to use delete SVN (Subversion) Command in Linux / Windows?

Explanation


delete command is used to remove a file from the svn server repository.

Usage:

svn delete <filename>

Example:

  • To remove a file from server repo, you should have the same version of the file locally.
    svn delete test1.txt
    Output:-----------------------------------------------
    D test1.txt
    D - Deleting a file.
    test1.txt. - Deleted filename.

    ---------------------------------------------------------

  • Then commit after delete.
    svn ci -m Delete

Result:


By executing the above cmd, the file 'test1.txt' will be deleted from both the server and local repository.Dont forget to call svn commit to delete a file from the server repo.

Ask Questions

Ask Question