Application Framework Reference

Splunk API

unsave()

The unsave() method sets the current job status to not saved, permitting the job to be canceled.

Synopsis

unsave( onSuccess , onFailure )

Parameters

onSuccess

Function

(Optional) Function to call on successful operation.

onFailure

Function

(Optional) Function to call on unsuccessful operation.

Example

var context = this.getContext();
var search = context.get('search');

search.job.unsave(
    function() { console.log('Current job successfully unsaved!'); },
    function() { console.log('Failed to unsave the current job!'); } );
 

See Also

isSaved()
save()