To wipe out a Jenkins pipeline workspace, you can use the deleteDir() function provided by the Pipeline Utility Steps plugin. This function deletes the entire workspace directory, including all files and subdirectories.

Here's an example of how you can use the deleteDir() function in a Jenkins pipeline:

pipeline {
    agent any

    stages {
        stage('Cleanup') {
            steps {

        // Add more stages here

In the example above, the deleteDir() function is called in the Cleanup stage, which runs at the beginning of the pipeline. This will delete the entire workspace directory before any other stages or steps are executed.

Note that using deleteDir() will permanently delete all files and directories in the workspace, so be sure to use it with caution. You may want to add a confirmation prompt or some other safeguard to prevent accidental deletion.