recursiveUnmanage((IContainer) resource, monitor);
recursiveUnmanage((IContainer) members[i], pm);
            private void recursiveUnmanage(IContainer container,                    IProgressMonitor monitor) {                try {                    monitor.beginTask(null, 10);                    monitor.subTask(container.getFullPath().toOSString());                    IResource[] members = container.members(true);                    for (int i = 0; i < members.length; i++) {                        monitor.worked(1);                        IResource resource = members[i];                        if (members[i].getType() != IResource.FILE) {                            recursiveUnmanage((IContainer) resource, monitor);                        }                    }                    // Post order traversal to make sure resources are not                    // orphaned                    IFolder svnFolder = container.getFolder(new Path(                            SVNConstants.SVN_DIRNAME));                    if (svnFolder.exists()) {                        try {                            svnFolder.delete(true, null);                        } catch (CoreException e) {                        }                    }                } catch (CoreException e) {                    // Just ignore and continue                } finally {                    monitor.done();                }            }