How can I cleanup the workspace in Jenkins? I am using AccuRev as version control tool.
AccuRev
I created freestyle projects in Jenkins.
freestyle
Assuming the question is about cleaning the workspace of the current job, you can run:
test -n "$WORKSPACE" && rm -rf "$WORKSPACE"/*