mocks.js
function(idAry, success, err) {
			var result = [];
			for(var i = 0; i < idAry.length; i++) {
				var found = false;
				var Id = idAry[i];
				for(var type in this.schema) {
					var allOfType = sforce.db.getSobjects(type);
					if(Id in allOfType) {
						delete allOfType[Id];
						found = true;
						result.push({success : 'true', id : Id});
						break;
					}
				}
				if(!found)
					result.push({success : 'false', id : Id});
			}
			if(success) 
				success(result);
			return result;
		}
function(idAry, success, err) {
			var result = [];
			for(var i = 0; i < idAry.length; i++) {
				var found = false;
				var Id = idAry[i];
				for(var type in this.schema) {
					var allOfType = sforce.db.getSobjects(type);
					if(Id in allOfType) {
						delete allOfType[Id];
						found = true;
						result.push({success : 'true', id : Id});
						break;
					}
				}
				if(!found)
					result.push({success : 'false', id : Id});
			}
			if(success) 
				success(result);
			return result;
		}
Delete all objects with thi id's in the id array and call success(...) or err(...) on success/failure