Delete (Del, remove, RM): Deletes files and directories from the version library.
Usage: 1, delete PATH ...
2, delete URL ...
1. The items specified by each PATH are scheduled to be removed from the version library the next time they are committed. Unless you give a
--keep-local parameters, files and directories that are not submitted in the working copy are immediately deleted.
If PATH is an uncontrolled or modified project, or contains these items, then only if the
These items are deleted when the--force parameter is given.
2. Items specified in each URL are removed from the version library by immediate submission.
Valid options:
--force: Forcing operations to run
-Q [--quiet]: Do not print information, or print only the summary information
--targets arg: Pass file ARG content as attachment parameter
-M [--message] arg: Specify log information ARG
-F [--file] ARG: Reading log information from file ARG
--force-log: Force checksum log information resource
--editor-cmd ARG: Using ARG as an external editor
--encoding ARG: Treats the value of ARG as a character encoding
--with-revprop ARG: Set version attribute ARG in new version
Use format Name[=value]
--keep-local: Keep the path in the working copy
Global options:
--username arg: Specifying user name ARG
--password arg: specifying password arg
--no-auth-cache: Do not cache user authentication tokens
--non-interactive: Do not interact with prompts
--trust-server-cert: Accept unknown SSL server certificate without prompting (option "--non-interactive" only)
--config-dir arg: Reading user profiles from directory ARG
--config-option ARG: Set User Configuration options in subordinate format:
File:section:option=[value]
For example:
Servers:global:http-library=serf
Example
Using SVN to delete a file from your working copy deletes your local copy of the file, but it merely schedules the file to be deleted from the repository. When you commit, the ' file is ' deleted in the repository.
$ SVN Delete myfile
D myfile
$ svn commit-m "Deleted file ' myfile '."
deleting myfile
Transmitting file data.
Committed revision 14.
Www.111cn.net
However, to delete a URL directly, you need to provide a log message:
$ svn delete-m "Deleting file ' Yourfile '" file:///var/svn/repos/test/yourfile
Committed revision 15.
The following are examples of mandatory deletion of locally modified files:
$ SVN Delete Over-there
Svn:attempting restricted operation for modified resource
Svn:use--force to override this restriction
SVN: ' over-there ' has local modifications
$ svn Delete--force Over-there
D Over-there
Common operations
1. Using SVN to delete files from a working copy is only intended to be deleted, and when you submit, the file will be deleted from the version library.
$ SVN Delete myfile
2. However, to delete a URL directly, you need to provide a log message:
$ svn delete-m "Deleting file ' Yourfile '" file:///tmp/repos/test/yourfile
3. Examples of mandatory deletion of locally modified files:
$ svn delete–force over-there