code: def delete_job(name=None):
      '''
      Return true is job is deleted successfully.
  
      :param name: The name of the job to delete.
      :return: Return true if job is deleted successfully.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' jenkins.delete_job jobname
  
      '''
      if not name:
          raise SaltInvocationError('Required parameter \'name\' is missing')
  
      server = _connect()
  
      if not job_exists(name):
          raise CommandExecutionError('Job \'{0}\' does not exist'.format(name))
  
      try:
          server.delete_job(name)
      except jenkins.JenkinsException as err:
          raise CommandExecutionError(
              'Encountered error deleting job \'{0}\': {1}'.format(name, err)
          )
      return Truf delete_job(name=None):
      '''
      Return true is job is deleted successfully.
  
      :param name: The name of the job to delete.
      :return: Return true if job is deleted successfully.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' jenkins.delete_job jobname
  
      '''
      if not name:
          raise SaltInvocationError('Required parameter \'name\' is missing')
  
      server = _connect()
  
      if not job_exists(name):
          raise CommandExecutionError('Job \'{0}\' does not exist'.format(name))
  
      try:
          server.delete_job(name)
      except jenkins.JenkinsException as err:
          raise CommandExecutionError(
              'Encountered error deleting job \'{0}\': {1}'.format(name, err)
          )
      return True
docs: Return true is job is deleted successfully.
  
      :param name: The name of the job to delete.
      :return: Return true if job is deleted successfully.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' jenkins.delete_job jobname