i need to delete all the versions/histroy of a file in svn. I know how to delete a file in svn using following code
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager((String) userKey,
(String) pwd);
repository.setAuthenticationManager(authManager);
ourClientManager = SVNClientManager.newInstance(null,
repository.getAuthenticationManager());
updateClient = ourClientManager.getUpdateClient();
System.out.println("SVN Authendication updateClient status - " + updateClient);
System.out.println("Start to delete an existing directory at '" + url + "'...");
try {
long deletedRevision = ourClientManager.getCommitClient().doDelete(new SVNURL[]{importToURL},
"New directory deletion").getNewRevision();
} catch (SVNException svne) {
System.err.println("Error on delete directory from SVN" + svne);
}
With this code am able to delete the file but there is no change in svn size. For this i need to delete its versions/history also to reduce size.Any other idea using java