# Cleanup an abnormally terminated working copy.
[Client working copy management]

## Functions
svn_error_t * | svn_client_cleanup (const char *dir, svn_client_ctx_t *ctx, apr_pool_t *scratch_pool)
| Recursively cleanup a working copy directory dir, finishing any incomplete operations, removing lockfiles, etc.

## Function Documentation

svn_error_t* svn_client_cleanup | ( | const char * | dir,
|  | svn_client_ctx_t * | ctx,
|  | apr_pool_t * | scratch_pool |
| ) |  |  |

Recursively cleanup a working copy directory dir, finishing any incomplete operations, removing lockfiles, etc.

If ctx->cancel_func is non-NULL, invoke it with ctx->cancel_baton at various points during the operation. If it returns an error (typically SVN_ERR_CANCELLED), return that error immediately.

Use scratch_pool for any temporary allocations.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines