Очистить LocalStorage на щелчке jQuery

if (localStorage.length > 0 ) {
    localStorage.clear();
}
Ashamed Addax