Skip to content

Deleting object from cache

This method deleted an object from cache if it is present there.

Backendless.Cache.remove( key )
 .then( function( result ) {
 })
 .catch( function( error ) {
 });

where:

Argument                Description
key identifies the object to delete from cache.

Example

var successCallback = function( response )  {
  console.log( "object has been removed from cache" );
};

var failureCallback = function( fault ) {
  console.log( "error - " + fault.message );
};

Backendless.Cache.remove( "firstorder" )
 .then( successCallback )
 .catch( failureCallback );