public void cleanupSession(String sessionID) throws IOException {if (sessionID.isEmpty()) { throw new IllegalArgumentException("sessionID cannot be empty");}IOUtils.rm(workDir.resolve(sessionID));}
public virtual void CleanupSession(string sessionId){if (string.IsNullOrEmpty(sessionId)) throw new ArgumentException("sessionID cannot be empty", "sessionId");string sessionDirectory = Path.Combine(workingDirectory, sessionId);System.IO.Directory.Delete(sessionDirectory, true);}