Borrar LocalStorage en hacer clic jQuery

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