Subversion (Version Control) - svn delete command

by
Jeremy Canfield |
Updated: March 09 2020
| Subversion (Version Control) articles
This assumes you have Subversion installed on your local PC. These examples are based on Linux.
This assumes you have checkout out a Subversion directory. Let's say you've checked out files to /tmp/SVN, and you want to delete /tmp/SVN/foo.txt. Delete foo.txt.
rm /tmp/SVN/foo.txt
svn delete foo.txt.
svn delete /tmp/SVN/foo.txt
If the delete is successful, the following will be displayed, which means that the delete is ready to be committed.
D foo.txt
Commit the delete.
svn commit --message 'deleting file' foo.txt
If the commit is successful, the following will be displayed.
Deleting foo.txt
Committed revision 123456
Did you find this article helpful?
If so, consider buying me a coffee over at