<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.svn.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.svn-delete.php',
    1 => 'svn_delete',
    2 => 'Delete items from a working copy or repository',
  ),
  'up' => 
  array (
    0 => 'ref.svn.php',
    1 => 'SVN 函数',
  ),
  'prev' => 
  array (
    0 => 'function.svn-commit.php',
    1 => 'svn_commit',
  ),
  'next' => 
  array (
    0 => 'function.svn-diff.php',
    1 => 'svn_diff',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/svn/functions/svn-delete.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.svn-delete" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">svn_delete</h1>
  <p class="verinfo">(PECL svn &gt;= 0.4.0)</p><p class="refpurpose"><span class="refname">svn_delete</span> &mdash; <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">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>svn_delete</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$force</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Deletes the file, directory or symbolic link at <code class="parameter">path</code>
   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.php" 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">参数</h3>
  <dl>
   
    <dt><code class="parameter">path</code></dt>
    <dd>
     <span class="simpara">
      Path of item to delete.
     </span>
     <blockquote class="note"><p><strong class="note">注意</strong>: <span class="simpara">相对路径将会以PHP执行文件所在目录作为当前工作目录进行解析。如果希望依据脚本所在目录解析, 使用<span class="function"><a href="function.realpath.php" class="function">realpath()</a></span> 或 dirname(__FILE__)。</span></p></blockquote>
    </dd>
   
   
    <dt><code class="parameter">force</code></dt>
    <dd>
     <span class="simpara">
      If <strong><code><a href="reserved.constants.php#constant.true">true</a></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><a href="reserved.constants.php#constant.false">false</a></code></strong>
     </span>
    </dd>
   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.svn-delete-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   成功时返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>， 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.svn-delete-notes">
  <h3 class="title">注释</h3>
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">此函数是<em>实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担。</p></div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.svn-delete-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><a href="http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.delete.html" class="link external">&raquo;&nbsp;SVN documentation on svn
   delete</a></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>