Deleting Jobs

Use the DELETE method to remove jobs from the scheduler. There are two forms to specify a single job or multiple jobs to delete.

Method

URL

DELETE

http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/<jobID>/

Return Value on Success

Typical Return Values on Failure

200 OK – The body contains the deleted job ID.

404 Not Found – When the specified job is not found in the server.

 

Method

URL

DELETE

http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs?<arguments>

Argument

Type/Value

Description

id

Multiple String

Enter as many job IDs as you want to delete, for example:

?id=5594&id=5645&id=5761

Options

accept: application/xml

accept: application/json

Return Value on Success

Typical Return Values on Failure

200 OK – The content is a list of deleted jobs.

 

The list of deleted jobs in the response has the following structure:

JSON: {"jobId":[5594,5645]}
 
XML: <jobIdList>
         <jobId>5594</jobId>
         <jobId>5645</jobId>
     </jobIdList>
Feedback
randomness