Class DeleteJobRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.DeleteJobRequest
Delete an anomaly detection job.
 
All job configuration, model state and results are deleted. It is not currently possible to delete multiple jobs using wildcards or a comma separated list. If you delete a job that has a datafeed, the request first tries to delete the datafeed. This behavior is equivalent to calling the delete datafeed API with the same timeout and force parameters as the delete job request.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Endpoint<DeleteJobRequest,DeleteJobResponse, ErrorResponse> Endpoint "ml.delete_job".
- 
Method SummaryModifier and TypeMethodDescriptionfinal BooleanSpecifies whether annotations that have been added by the user should be deleted along with any auto-generated annotations when the job is reset.final Booleanforce()Use to forcefully delete an opened job; this method is quicker than closing and deleting the job.final StringjobId()Required - Identifier for the anomaly detection job.static DeleteJobRequestfinal BooleanSpecifies whether the request should return immediately or wait until the job deletion completes.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_ENDPOINTEndpoint "ml.delete_job".
 
- 
- 
Method Details- 
ofpublic static DeleteJobRequest of(Function<DeleteJobRequest.Builder, ObjectBuilder<DeleteJobRequest>> fn) 
- 
deleteUserAnnotationsSpecifies whether annotations that have been added by the user should be deleted along with any auto-generated annotations when the job is reset.API name: delete_user_annotations
- 
forceUse to forcefully delete an opened job; this method is quicker than closing and deleting the job.API name: force
- 
jobIdRequired - Identifier for the anomaly detection job.API name: job_id
- 
waitForCompletionSpecifies whether the request should return immediately or wait until the job deletion completes.API name: wait_for_completion
 
-