Added functionality for wiping out the workspace of a job

Ability to wipe out the workspace of a job + unit test + functional test