<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Delete items from a working copy or repository.</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.svn-commit.html">svn_commit</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.svn-diff.html">svn_diff</a></div> <div class="up"><a href="ref.svn.html">SVN Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.svn-delete" class="refentry"> <div class="refnamediv"> <h1 class="refname">svn_delete</h1> <p class="verinfo">(PECL svn >= 0.4.0)</p><p class="refpurpose"><span class="refname">svn_delete</span> — <span class="dc-title">Delete items from a working copy or repository.</span></p> </div> <div class="refsect1 description" id="refsect1-function.svn-delete-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>svn_delete</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$path</code></span> [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$force</code><span class="initializer"> = false</span></span> ] )</div> <p class="para rdfs-comment"> Deletes the file, directory or symbolic link at <em><code class="parameter">path</code></em> from the working directory. The item will be deleted from the repository the next time you call <span class="function"><a href="function.svn-commit.html" class="function">svn_commit()</a></span> on the working copy. </p> </div> <div class="refsect1 parameters" id="refsect1-function.svn-delete-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">path</code></em></span> <dd> <p class="para"> Path of item to delete. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use <span class="function"><a href="function.realpath.html" class="function">realpath()</a></span> or dirname(__FILE__).</span></p></blockquote> </dd> </dt> <dt> <span class="term"><em><code class="parameter">force</code></em></span> <dd> <p class="para"> If <strong><code>TRUE</code></strong>, the file will be deleted even if it has local modifications. Otherwise, local modifications will result in a failure. Default is <strong><code>FALSE</code></strong> </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.svn-delete-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 notes" id="refsect1-function.svn-delete-notes"> <h3 class="title">Notes</h3> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is <em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. </p></div> </div> <div class="refsect1 seealso" id="refsect1-function.svn-delete-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.delete.html" class="link external">» SVN documentation on svn delete</a></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.svn-commit.html">svn_commit</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.svn-diff.html">svn_diff</a></div> <div class="up"><a href="ref.svn.html">SVN Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>