Hapus LocalStorage di klik jQuery

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