FreeKB - Delete a file in Subversion (svn delete)
Delete a file in Subversion (svn delete)

Home > Search


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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 10e51 in the box below so that we can be sure you are a human.




Comments