dist/angular-webstorage.js
function (storageType) {
            var isStorageType = typeof storageType === 'undefined' ? false : true,
                key;

            if (isStorageType) {
                webStorage = $window[storageType];
                for (key in webStorage) removeFromStorage(key, storageType);
            } else {
                webStorage = $window.sessionStorage;
                for (key in webStorage) removeFromStorage(key, 'sessionStorage');
                webStorage = $window.localStorage;
                for (key in webStorage) removeFromStorage(key, 'localStorage');
            }
            return true;
        }
function (storageType) {
            var isStorageType = typeof storageType === 'undefined' ? false : true,
                key;

            if (isStorageType) {
                webStorage = $window[storageType];
                for (key in webStorage) removeFromStorage(key, storageType);
            } else {
                webStorage = $window.sessionStorage;
                for (key in webStorage) removeFromStorage(key, 'sessionStorage');
                webStorage = $window.localStorage;
                for (key in webStorage) removeFromStorage(key, 'localStorage');
            }
            return true;
        }
/*
Remove all datas from storage
- storageType: localStorage or sessionStorage