{"id":59444,"date":"2025-08-18T13:45:45","date_gmt":"2025-08-18T16:45:45","guid":{"rendered":"https:\/\/manualdousuario.net\/?p=59444"},"modified":"2025-08-18T13:45:45","modified_gmt":"2025-08-18T16:45:45","slug":"remover-abas-safari-icloud","status":"publish","type":"post","link":"https:\/\/manualdousuario.net\/en\/remover-abas-safari-icloud\/","title":{"rendered":"How to remove \u201cstuck\u201d iCloud Tabs in Safari"},"content":{"rendered":"<p>Things at Apple work great until the day they don&#8217;t. A silly example that really bugs me is \u201cstuck\u201d iCloud tabs on Safari \u2014 a glitch in <a href=\"https:\/\/support.apple.com\/en-us\/108409\">Apple&#8217;s tab syncing feature<\/a> that lets me access tabs from one device on others.<\/p>\n<p><!--more-->The issue happens when one or a set of tabs refuses to disappear from the synced list. For example: I&#8217;m on device A and Safari shows two tabs open on device B. I close both tabs from B (either on A or on B), but they almost immediately reappear on A as if they were still open on B, which they&#8217;re not.<\/p>\n<p>I use Safari&#8217;s tab syncing quite a bit, and seeing a stuck tab there pretty much kills the appeal of the feature for me.<\/p>\n<p>There is a solution, but it&#8217;s far from the beautiful UIs Apple takes such pride in their software. To fix this problem, you need to turn to the command line. (Which isn&#8217;t rocket science, just a bit intimidating for those unfamiliar with Terminal.)<\/p>\n<p>The tip below is a transcription of <a href=\"https:\/\/www.reddit.com\/r\/MacOS\/comments\/tuv2hn\/solved_finally_found_a_hopefully_permanent_fix\/\">this Reddit post<\/a>, written by user u\/lando55. We&#8217;ll need Terminal (so, a Mac) and a database editing application. In this case, we&#8217;ll use the same one they did, sqlite3, which (unless I&#8217;m mistaken) comes pre-installed on macOS. Run the command <code>where sqlite3<\/code> or <code>sqlite3 --version<\/code> in Terminal and see if it returns something. If you get an invalid command error, Homebrew or MacPorts are your friends.<\/p>\n<p>The first step is to close Safari on all devices connected to your Apple Account and disable Safari syncing with iCloud on all of them.<\/p>\n<p>Now, open Terminal and navigate to the directory <samp>~\/Library\/Containers\/com.apple.Safari\/Data\/Library\/Safari<\/samp><sup id=\"fnref-1\"><a href=\"#fn-1\" rel=\"footnote\">1<\/a><\/sup>:<\/p>\n<pre>cd ~\/Library\/Containers\/com.apple.Safari\/Data\/Library\/Safari<\/pre>\n<p>There should be a database file that stores Safari tabs synced by iCloud, called <samp>CloudTabs.db<\/samp>. Open it with this command:<\/p>\n<pre>sqlite3 CloudTabs.db<\/pre>\n<p>The Terminal prompt will change, indicating you&#8217;re inside the database.<\/p>\n<p>Use this command:<\/p>\n<pre>SELECT * FROM cloud_tabs LIMIT 100;<\/pre>\n<p>This will list all synced Safari tabs. The stuck ones should appear somewhere in there. To see a list of just the synced tabs (URLs), use this command:<\/p>\n<pre>SELECT url FROM cloud_tabs;<\/pre>\n<p>Each device connected to iCloud is associated with an identifier, the <samp>device_uuid<\/samp>. To list all of them, use this command:<\/p>\n<pre>SELECT DISTINCT device_uuid FROM cloud_tabs;<\/pre>\n<p>If you have many tabs open and want to keep them, identify which <samp>device_uuid<\/samp> the problematic tabs are associated with from that first sqlite3 command, and with that code in hand, run this command:<\/p>\n<pre>DELETE FROM cloud_tabs WHERE device_uuid = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX';<\/pre>\n<p>Replace all those &#8220;X&#8221;s with the <samp>device_uuid<\/samp> of the troubled device. Note that this action is destructive and irreversible unless you&#8217;ve made a backup of the database.<\/p>\n<p>If you don&#8217;t have important tabs and closing all of them won&#8217;t cause any harm, run the above command for all the <samp>device_uuid<\/samp> values you found.<\/p>\n<details>\n<summary>By the way\u2026<\/summary>\n<p>Over here, I&#8217;ve found some <samp>device_uuid<\/samp> entries from old devices or current ones that were wiped at some point. I always delete all of them.<br>\n<\/details>\n<p>Once you&#8217;re done editing the database, exit with the command <code>.quit<\/code> and re-enable Safari syncing in iCloud.<\/p>\n<p>If everything goes right, when you open Safari again it should be free of those stuck tabs.<\/p>\n<div class=\"footnotes\">\n<ol>\n<li class=\"footnote\" id=\"fn-1\">In some cases, the synced tabs database might be in the <samp>~\/Library\/Safari\/<\/samp> directory instead. <a href=\"#fnref-1\" title=\"Return\">\u21a9<\/a><\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Things at Apple work great until the day they don&#8217;t. A silly example that really bugs me is \u201cstuck\u201d iCloud tabs on Safari \u2014 a glitch in Apple&#8217;s tab syncing feature that lets me access tabs from one device on others.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","_locale":"en_US","_original_post":""},"categories":[1575],"tags":[1818,1961],"_links":{"self":[{"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/posts\/59444"}],"collection":[{"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/comments?post=59444"}],"version-history":[{"count":3,"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/posts\/59444\/revisions"}],"predecessor-version":[{"id":59449,"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/posts\/59444\/revisions\/59449"}],"wp:attachment":[{"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/media?parent=59444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/categories?post=59444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manualdousuario.net\/wp-json\/wp\/v2\/tags?post=59444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}