# Script that deletes lister layout

**URL:** https://resource.dopus.com/t/script-that-deletes-lister-layout/33607
**Category:** Help & Support
**Tags:** script
**Created:** [September 25, 2019, 5:39pm UTC](https://resource.dopus.com/t/script-that-deletes-lister-layout/33607 "2019-09-25T17:39:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sol](https://resource.dopus.com/user_avatar/resource.dopus.com/sol/32/54345_2.png) [@Sol](https://resource.dopus.com/u/Sol)
#### Post date: [September 25, 2019, 5:39pm UTC](https://resource.dopus.com/t/script-that-deletes-lister-layout/33607/1 "2019-09-25T17:39:41Z")

</div>

Is it possible to delete an existing folder layout from a script level (for example using it's name)? I could not find any Opus command to do such a thing. I found options to save the layout, load it but not to remove it.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [September 25, 2019, 5:54pm UTC](https://resource.dopus.com/t/script-that-deletes-lister-layout/33607/2 "2019-09-25T17:54:08Z")

</div>

If you mean Lister Layouts, you can delete their `.oll` files from `/dopusdata\Layouts` to delete them.

---

<div class="post-metadata">

### Author: ![Sol](https://resource.dopus.com/user_avatar/resource.dopus.com/sol/32/54345_2.png) [@Sol](https://resource.dopus.com/u/Sol)
#### Post date: [September 25, 2019, 6:26pm UTC](https://resource.dopus.com/t/script-that-deletes-lister-layout/33607/3 "2019-09-25T18:26:21Z")

</div>

Indeed the layouts are stored there. Thank you. There is also an order.xml file. Is it safe to leave it untouched? Wouldn't it refer to non-existing layout file? Can such file removal with Directory Opus enabled disrupt it's work somehow?

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [September 25, 2019, 6:37pm UTC](https://resource.dopus.com/t/script-that-deletes-lister-layout/33607/4 "2019-09-25T18:37:41Z")

</div>

You don't need to worry about `order.xml`. The item that's no longer there will be ignored when the file is read in, and will be removed automatically the next time it needs to be written out.
