5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SafariのLocalStorageを削除する

Posted at

SafariにはWeb Inspectorというデバッグツールが付属しており、他のブラウザでいうFirefoxのfirebugやChromeのDeveloper Toolsに相当する。
このWeb Inspectorを使えばJavaScriptのエラーを確認したりCSSの内容を一時的に書き換えて見た目を確かめたりといったことができるのだが、何故かLocalStorageの確認と削除ができないので、代わりに $HOME/Library/Safari/LocalStorage/ の中にあるファイルを削除する。

Terminal
ls -l $HOME/Library/Safari/LocalStorage/http_localhost_*
# -rw-r--r--@ 1 yuku  staff    12K Mar  5 00:02 http_localhost_8000.localstorage

このファイルを消せばlocalhost:8000のLocalStorageが削除される。

Terminal
rm $HOME/Library/Safari/LocalStorage/http_localhost_8000.localstorage
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?