# Unable to unregister a folder & register a new one

**URL:** <https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607>\
**Category:** Pipeline Integrations\
**Tags:** unregister\
**Created:** [September 30, 2021, 8:23pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607 "2021-09-30T20:23:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvinmetzner](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/marvinmetzner/32/1935_2.png) [@marvinmetzner](https://community.shotgridsoftware.com/u/marvinmetzner)\
**Post date:** [September 30, 2021, 8:23pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607/1 "2021-09-30T20:23:18Z")

</div>

I made the rookie mistake of creating a shot in SG, then running the Create Folder script, then realising I created the wrong shot and renaming it without unregistering the folder first.

Later I tried to create a new shot with the same name I gave the other one originally, but when trying to run Create Folder on this I get:

Folder creation aborted: The path /path/to/shot/seq2/shot2 cannot be processed because it is already associated with Shot shot1 (id 8817) in Shotgun. You are now trying to associate it with Shot shot2 (id 8871). If you want to unregister your previously created folders, you can run the following command: tank unregister\_folders /path/to/shot/seq2/shot2

Trying this gives me:

WARNING: Path  
‘/path/to/shot/seq2/shot2’ is not  
registered in Shotgun - ignoring.  
No associated folders found!

same goes for the original seq1/shot1, and addressing the shot id direclty.

I tried deleting the shots and creating them again, but to no avail.

Is there anything that can be done? I would be ok with completing deleting them in SG and starting fresh, but I don’t know how (they still show up in the trash)

Thanks, Alex

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [September 30, 2021, 8:28pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607/2 "2021-09-30T20:28:30Z")

</div>

Try a local cache sync first:

```
tank synchronize_folders

```

and then a unregister.

See this doc for more:

> **[ShotGrid Developer](https://developer.shotgridsoftware.com/cbbf99a4/)**
>
> This site contains detailed technical reference for all of the ways you can interact with ShotGrid programmatically, as well as tutorials, guides, and other educational resources for learning how to make the best use of all of ShotGrid's integration...

---

<div class="post-metadata">

**Author:** ![marvinmetzner](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/marvinmetzner/32/1935_2.png) [@marvinmetzner](https://community.shotgridsoftware.com/u/marvinmetzner)\
**Post date:** [September 30, 2021, 8:36pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607/3 "2021-09-30T20:36:40Z")

</div>

> [@Ricardo\_Musch](#):
>
> `tank synchronize_folders`

Ok, thanks. Tried it in the shell in the shotgun project root:  
/mnt/software/shotgun/project tank synchronize\_folders --full

* * *

Command: Synchronize folders

* * *

Ensuring that the local folder representation is up to date…

Doing a full sync.

Local folder information has been synchronized.

But then running unregister\_folders on both shots still gives me:

WARNING: Path

‘/path/to/shot/seq2/shot2’ is not

registered in Shotgun - ignoring.

No associated folders found!

Trying to run Create Folders gives me the same “already registered” error message

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [September 30, 2021, 8:56pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607/4 "2021-09-30T20:56:50Z")

</div>

Maybe try unregistering all paths for the Shotname?

> tank Shot shot2 unregister\_folders

---

<div class="post-metadata">

**Author:** ![marvinmetzner](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/marvinmetzner/32/1935_2.png) [@marvinmetzner](https://community.shotgridsoftware.com/u/marvinmetzner)\
**Post date:** [September 30, 2021, 8:59pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607/5 "2021-09-30T20:59:49Z")

</div>

Ok. that did work - I did have to unregister shot2 with its id though, shotname wouldn’t work.

Thank you!

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [September 30, 2021, 9:03pm UTC](https://community.shotgridsoftware.com/t/unable-to-unregister-a-folder-register-a-new-one/13607/6 "2021-09-30T21:03:22Z")

</div>

There you go, yeah sometimes things can get a bit messy, I’m not sure why…

As long as you managed 🙂
