svn_cleanup

Recursively cleanup a working copy directory, finishing incomplete operations and removing locks

&reftitle.description; `bool` `svn_cleanup` `string` `workingdir`

Recursively cleanup working copy directory `workingdir`, finishing any incomplete operations and removing working copy locks. Use when a working copy is in limbo and needs to be usable again.

&reftitle.parameters;

`workingdir`

- String path to local working directory to cleanup

  &svn.relativepath;
&reftitle.returnvalues;

&return.success;

&reftitle.notes; &warn.experimental.func;
&reftitle.examples;

### Basic example

This example demonstrates clean up of a working copy in a directory named help-me:

    <?php
    svn_cleanup(realpath('help-me'));
    ?>

The `realpath` call is necessary due to SVN's quirky handling of relative paths.

&reftitle.seealso;

- `update`
- SVN documentation on svn cleanup