Class to handle deletion of job information

export

### Hierarchy

- DeleteJobs

## Index

### Accessors

- log

### Methods

- deleteJob
- deleteJobCommon
- deleteJobForJob

## Accessors

### Static Private log

- get log(): Logger

- - Defined in @zowe/zos-jobs-for-zowe-sdk/src/DeleteJobs.ts:97

  Getter for Zowe logger

  #### Returns Logger

## Methods

### Static deleteJob

- deleteJob(session: AbstractSession, jobname: string, jobid: string): Promise<undefined | IJobFeedback>

- - Defined in @zowe/zos-jobs-for-zowe-sdk/src/DeleteJobs.ts:36

  Cancel and purge a job

  static
  memberof

    DeleteJobs

  #### Parameters

  - ##### session: AbstractSession

    z/OSMF connection info

  - ##### jobname: string

    job name to be translated into parms object

  - ##### jobid: string

    job id to be translated into parms object

  #### Returns Promise<undefined | IJobFeedback>

  - promise of undefined, or IJobFeedback object returned by API if modifyVersion is 2.0

### Static deleteJobCommon

- deleteJobCommon(session: AbstractSession, parms: IDeleteJobParms): Promise<undefined | IJobFeedback>

- - Defined in @zowe/zos-jobs-for-zowe-sdk/src/DeleteJobs.ts:65

  Cancel and purge a job Full version of the API with a parameter object

  static
  memberof

    DeleteJobs

  #### Parameters

  - ##### session: AbstractSession

    z/OSMF connection info

  - ##### parms: IDeleteJobParms

    parm object (see IDeleteJobParms interface for details)

  #### Returns Promise<undefined | IJobFeedback>

  - promise of undefined, or IJobFeedback object returned by API if modifyVersion is 2.0

### Static deleteJobForJob

- deleteJobForJob(session: AbstractSession, job: IJob, modifyVersion?: "1.0" | "2.0"): Promise<undefined | IJobFeedback>

- - Defined in @zowe/zos-jobs-for-zowe-sdk/src/DeleteJobs.ts:51

  Cancel and purge a job Alternative version of the delete API accepting an IJob object returned from other APIs such as GetJobs and SubmitJobs

  static
  memberof

    DeleteJobs

  #### Parameters

  - ##### session: AbstractSession

    z/OSMF connection info

  - ##### job: IJob

    the job that you want to delete

  - ##### Optional modifyVersion: "1.0" | "2.0"

    version of the X-IBM-Job-Modify-Version header to use (see ZosmfHeaders)

  #### Returns Promise<undefined | IJobFeedback>

  - promise of undefined, or IJobFeedback object returned by API if modifyVersion is 2.0

Generated using TypeDoc