# Unfork

**URL:** <https://talk.observablehq.com/t/unfork/1692>\
**Category:** Uncategorized\
**Created:** [February 22, 2019, 4:44pm UTC](https://talk.observablehq.com/t/unfork/1692 "2019-02-22T16:44:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 22, 2019, 4:44pm UTC](https://talk.observablehq.com/t/unfork/1692/1 "2019-02-22T16:44:43Z")

</div>

How can I ‘unfork’ a notebook (because has changed beyond recognition from the source notebook)?

That is, you want to unlink it from the source notebook, so the fork message at the top of the page disappears.

---

<div class="post-metadata">

**Author:** ![bgchen](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/bgchen/32/784_2.png) [@bgchen](https://talk.observablehq.com/u/bgchen)\
**Post date:** [February 22, 2019, 6:07pm UTC](https://talk.observablehq.com/t/unfork/1692/2 "2019-02-22T18:07:18Z")

</div>

Hi Martien, currently you can’t do this except by creating a new notebook, copying and pasting all the cells from the old notebook into it, and then deleting the old notebook.

Given [your post in the other thread](https://talk.observablehq.com/t/notebook-reload-refresh-http-get-often-takes-14s/1676/9), I’m guessing you’re well aware of the fact that duplicating and deleting isn’t exactly the same as “unforking”: if the notebook has been published, there’s no way to create a new notebook that has the same URI (for good reasons!). So it’s possible this isn’t the answer you’re looking for.

If on the other hand, this is good enough, you can save yourself some time if you’re willing to run a node.js program from the command line: see [the script I posted](https://talk.observablehq.com/t/backup-method/1628/14) (based on work of @mootari) in the “backup method?” thread, which has notebook “download” and “upload” functionality (at least until the API changes).

---

<div class="post-metadata">

**Author:** ![bumbeishvili](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/bumbeishvili/32/4220_2.png) [@bumbeishvili](https://talk.observablehq.com/u/bumbeishvili)\
**Post date:** [February 22, 2019, 6:27pm UTC](https://talk.observablehq.com/t/unfork/1692/3 "2019-02-22T18:27:16Z")

</div>

Steps:

1. Fork original notebook
2. Publish The Fork (We call it fork1)
3. Fork the fork1 notebook and publish it (we call it fork2)
4. Trash fork1

Although fork symbol still be displayed in thumbnail

![59%20PM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/9/9ff186ecb2839c6e9060f447aa3e9d60073329d7.png)

But fork message at the top of page disappears

![04%20PM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/7/72ad4b25786f3f3674d84da6a06f6c7e0d6c0e46.png)

---

<div class="post-metadata">

**Author:** ![bgchen](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/bgchen/32/784_2.png) [@bgchen](https://talk.observablehq.com/u/bgchen)\
**Post date:** [February 22, 2019, 6:35pm UTC](https://talk.observablehq.com/t/unfork/1692/4 "2019-02-22T18:35:10Z")

</div>

If you just want to keep the fork message hidden from the public, note that forks of unpublished notebooks do not have the fork message displayed publicly (so you don’t have to trash fork1, you can just unpublish it). The icon is always displayed though.

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 22, 2019, 8:22pm UTC](https://talk.observablehq.com/t/unfork/1692/5 "2019-02-22T20:22:17Z")

</div>

Hi Bryan,

Thanks for your reply. Will dive into it shortly.

Have a nice day.

---

<div class="post-metadata">

**Author:** ![Martien](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/martien/32/470_2.png) [@Martien](https://talk.observablehq.com/u/Martien)\
**Post date:** [February 22, 2019, 8:23pm UTC](https://talk.observablehq.com/t/unfork/1692/6 "2019-02-22T20:23:50Z")

</div>

Thanks David. Will give it a try soon.

Have a nice day as well.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [January 25, 2020, 5:33pm UTC](https://talk.observablehq.com/t/unfork/1692/7 "2020-01-25T17:33:21Z")

</div>

I’d love to see an option to “detach” a fork, so that even the fork icon won’t be displayed anymore. As mentioned by others trashing the parent notebook is not sufficient (even when the trash is emptied), and by copying everything into a new notebook one loses the edit history.

---

<div class="post-metadata">

**Author:** ![Job](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/job/32/1185_2.png) [@Job](https://talk.observablehq.com/u/Job)\
**Post date:** [January 25, 2020, 10:10pm UTC](https://talk.observablehq.com/t/unfork/1692/8 "2020-01-25T22:10:07Z")

</div>

I think I would limit that to forks of one’s own notebooks at best. I’ve had a few cases where I accidentally liked a completely unchanged fork before realizing it was not original work. Now, at the moment I’m sure it’s mosely someone (presumably) using a fork to save a notebook for later, but it still worries me.

I kind of hope that Observable will manage to avoid the issues that seem to be inherent to likes/retweets/upvotes in social media sites (especially the part where popularity contests drive the platform to be less and less about producing original work). If I people could just copy other people’s notebook and present it as their own with a click or two I think that would make things worse in the long run.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [January 25, 2020, 10:27pm UTC](https://talk.observablehq.com/t/unfork/1692/9 "2020-01-25T22:27:14Z")

</div>

> [@Job](#):
>
> I think I would limit that to forks of one’s own notebooks at best.

Certainly, although that can complicate things, as for forks of a fork the complete chain needs to be checked.

But there’s another issue with forks that I previously missed: You can only access the history starting from the revision that got forked. So even forking won’t preserve history.
