code: function (key) {
        if (!browserSupportsLocalStorage || self.storageType === 'cookie') {
          if (!browserSupportsLocalStorage) {
            $rootScope.$broadcast('LocalStorageModule.notification.warning', 'LOCAL_STORAGE_NOT_SUPPORTED');
          }
  
          if (notify.removeItem) {
            $rootScope.$broadcast('LocalStorageModule.notification.removeitem', {key: key, storageType: 'cookie'});
          }
          return removeFromCookies(key);
        }
  
        try {
          webStorage.removeItem(deriveQualifiedKey(key));
          if (notify.removeItem) {
            $rootScope.$broadcast('LocalStorageModule.notification.removeitem', {key: key, storageType: self.storageType});
          }
        } catch (e) {
          $rootScope.$broadcast('LocalStorageModule.notification.error', e.message);
          return removeFromCookies(key);
        }
        return true;
      }
docs: Remove an item from local storage Example use: localStorageService.remove('library'); // removes the key/value pair of library='angular'