# Refactoring items out of a node

**URL:** <https://org-roam.discourse.group/t/refactoring-items-out-of-a-node/1857>\
**Category:** Requests\
**Created:** [July 29, 2021, 10:20pm UTC](https://org-roam.discourse.group/t/refactoring-items-out-of-a-node/1857 "2021-07-29T22:20:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elsehow](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/elsehow/32/865_2.png) [@elsehow](https://org-roam.discourse.group/u/elsehow)\
**Post date:** [July 29, 2021, 10:20pm UTC](https://org-roam.discourse.group/t/refactoring-items-out-of-a-node/1857/1 "2021-07-29T22:20:53Z")

</div>

After migrating to v2, I notice that I’m starting with large files, then making nodes inside them. Eventually, I want to split that node out i into its own file.

So far, I’ve accomplished this by:

1. Making a new file with `org-roam-node-find`.
2. Copying the `:PROPERTIES:` draw to the new file, along with my content.
3. Doing `org-roam-db-sync`.

Has anyone come up with a better way to do this?

I was hoping `org-roam-refile` would help, but it doesn’t let me make a new node!

---

<div class="post-metadata">

**Author:** ![jethro](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jethro](https://org-roam.discourse.group/u/jethro)\
**Post date:** [July 30, 2021, 9:42am UTC](https://org-roam.discourse.group/t/refactoring-items-out-of-a-node/1857/2 "2021-07-30T09:42:47Z")

</div>

You can try the new `org-roam-extract-subtree` in latest master, but I’ve only tested it with my own files, so it might be a little wonky.

---

<div class="post-metadata">

**Author:** ![elsehow](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/elsehow/32/865_2.png) [@elsehow](https://org-roam.discourse.group/u/elsehow)\
**Post date:** [July 30, 2021, 3:55pm UTC](https://org-roam.discourse.group/t/refactoring-items-out-of-a-node/1857/3 "2021-07-30T15:55:04Z")

</div>

> [@jethro](#):
>
> `org-roam-extract-subtree`

Perfect! I’m not sure how others feel, but I’d expect this functionality to be included in `org-roam-refile`. In other words, I’d expect that method to allow me to make a new node (perhaps by calling `org-roam-extract-subtree` under the hood).
