Cypress automatically clears all local storage before each test to prevent state from being shared across tests when test isolation is enabled. You shouldn't need to use this command unless you're using it to clear localStorage inside a single test or test isolation is disabled.
When I clear all local storage:
Clear
localStorage
data for all origins with which the test has interacted.