Skip to main content

destroySessionObject method

ON THIS PAGE

destroySessionObject method

Note: STABLE.

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

id

Type: 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.7.0/docs/api/ng/service/$q#the-promise-api.

Example

app.destroySessionObject('xcVtY');
app.destroySessionObject(reply.qInfo.qId);