argon/storage/local.js
function remove(requestObj, callback) {
            var storageInstance = this;
            var storage = this;
            
            callback = callback || function defaultRemoveCallBack() {
                //setup Error Notification
            };
            
            if ((typeof requestObj) === 'undefined' || requestObj === null) {
               callback(null);
               return this;
            }

            if (requestObj.data) {
                for (i = 0; i < storage.preprocessors.length; i++) {
                    requestObj.data = storage.preprocessors[i](requestObj.data, requestObj);
                }
            }
            
            if (requestObj.data && requestObj.data.id) {
                delete storageInstance.storage[requestObj.data.id];
            }

            callback(null);
            
            return this;
        }
function remove(requestObj, callback) {
            var storageInstance = this;
            var storage = this;
            
            callback = callback || function defaultRemoveCallBack() {
                //setup Error Notification
            };
            
            if ((typeof requestObj) === 'undefined' || requestObj === null) {
               callback(null);
               return this;
            }

            if (requestObj.data) {
                for (i = 0; i < storage.preprocessors.length; i++) {
                    requestObj.data = storage.preprocessors[i](requestObj.data, requestObj);
                }
            }
            
            if (requestObj.data && requestObj.data.id) {
                delete storageInstance.storage[requestObj.data.id];
            }

            callback(null);
            
            return this;
        }
function remove ( requestObj , callback ) { var storageInstance = this ; var storage = this ; callback = callback || function defaultRemoveCallBack ( ) { //setup Error Notification } ; if ( ( typeof requestObj ) === 'undefined' || requestObj === null ) { callback ( null ) ; return this ; } if ( requestObj . data ) { for ( i = 0 ; i < storage . preprocessors . length ; i ++ ) { requestObj . data = storage . preprocessors [ i ] ( requestObj . data , requestObj ) ; } } if ( requestObj . data && requestObj . data . id ) { delete storageInstance . storage [ requestObj . data . id ] ; } callback ( null ) ; return this ; }
Removes a set of elements from the storage
@method remove <public>
@argument query <required> [Object] the query to the elements that must be removed
@argument callback [Function] The function that will be executed when the process ends
@return [Object] this
Removes a set of elements from the storage