destroySessionObject method
Note: STABLE.
This API is reliable and breaking changes are unlikely.
This API is reliable and breaking changes are unlikely.
qlik.app.destroySessionObject(id)
Destroys a Qlik Sense session object created with the createGenericObject method or any of createCube, createList or getList methods.
Calling this method removes the object from the Qlik Associative Engine, no more updates are sent to the client and all methods on the object are invalid.
Version history
Introduced | 1.1 |
Parameters
Name | Type | Description |
---|---|---|
id | String | Session object id. |
Returns
A promise of a Qlik Associative Engine reply.
Tip: For more information regarding a promise, see https://code.angularjs.org/1.5.8/docs/api/ng/service/$q#the-promise-api.
Example
app.destroySessionObject('xcVtY');
app.destroySessionObject(reply.qInfo.qId);