# Recursive "uno clean" batch file

**URL:** <https://forums.fusetools.com/t/recursive-uno-clean-batch-file/4304>\
**Category:** Show and Tell\
**Created:** [October 23, 2017, 3:29pm UTC](https://forums.fusetools.com/t/recursive-uno-clean-batch-file/4304 "2017-10-23T15:29:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/enrico/32/144_2.png) [@Enrico](https://forums.fusetools.com/u/Enrico)\
**Post date:** [October 23, 2017, 3:29pm UTC](https://forums.fusetools.com/t/recursive-uno-clean-batch-file/4304/1 "2017-10-23T15:29:34Z")

</div>

If you have more Fuse projects you are working on I’m pretty sure you found boring launching `uno clean` for every folder every time a new Fuse version is published or you need a full clean rebuild. The following `BAT` file will recurse all folders inside your `project` folder (in this case `C:\Fuse`) and execute `uno clean`. The `BAT` file will recurse only the first level of the folders so it will not enter for example `pages` in `c:\fuse\my_proj\pages` but will launch `uno clean` only in `c:\fuse\my_proj`.

```
@echo off
pushd "c:\Fuse"
for /f "delims=" %%a in ('dir /ad /b ') do (
    pushd "%%a"
    uno clean
    popd
)
popd
pause

```

Please share any improvement.

---

<div class="post-metadata">

**Author:** ![boot-cheese-3000](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@boot-cheese-3000](https://forums.fusetools.com/u/boot-cheese-3000)\
**Post date:** [March 1, 2018, 11:51pm UTC](https://forums.fusetools.com/t/recursive-uno-clean-batch-file/4304/2 "2018-03-01T23:51:11Z")

</div>

Could you PLEASE provide an example of what the command would look like to run uno clean? I’ve DL’ed 2 of the Fuse updates along with only installing one of them (the most recent I haven’t installed yet) and I’m trying to work on a Project, but am having some issues on getting the preview window to appear on my Phone without seeing some blank page on that or in Fuse. I see that I have to run a uno clean, but I have no idea how the command would look.

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [March 2, 2018, 7:02am UTC](https://forums.fusetools.com/t/recursive-uno-clean-batch-file/4304/3 "2018-03-02T07:02:10Z")

</div>

The command looks exactly like that: `uno clean`.

You have to run it in Terminal (MacOS) or CMD (Windows), in the project root folder. When in Fuse, you can select from the top menu: Project -\> Open in Terminal. That will open up the Terminal/CMD window where you can execute `uno clean`.

---

<div class="post-metadata">

**Author:** ![boot-cheese-3000](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@boot-cheese-3000](https://forums.fusetools.com/u/boot-cheese-3000)\
**Post date:** [March 2, 2018, 4:17pm UTC](https://forums.fusetools.com/t/recursive-uno-clean-batch-file/4304/4 "2018-03-02T16:17:51Z")

</div>

Really? Because it wasn’t working for me in Terminal when I was trying it, so I opened Fuse and followed your Instructions…

niiiiice…I was able to run a uno clean command on a different file, but in regards to the one I’m trying to work on, I was unable to locate the file, and that’s when I realized my problem…

…it’s not saved as a unoproj file, only the mainux format, if I’m not mistaken. I’m about to save it as a unoproj and see if it’ll work, I’ll let you know what happens.

Thank You for the response.
