# How to remove /system/default-configuration/custom-script?

**URL:** <https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299>\
**Category:** General\
**Created:** [March 19, 2023, 3:29pm UTC](https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299 "2023-03-19T15:29:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bp0](https://forum.mikrotik.com/letter_avatar/bp0/32/6_449c533f586939b6e5f246632a46421f.png) [@bp0](https://forum.mikrotik.com/u/bp0)\
**Post date:** [March 19, 2023, 3:29pm UTC](https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299/1 "2023-03-19T15:29:06Z")

</div>

I used netinstall-cli with -s userscript to send a configuration to a rb4011 along with the firmware. I did not expect that it would save that script in /system/default-configuration/custom-script, and will always use it when the reset button is used, which is actually a nice feature. However, it seems that it also uses it when /system/reset-configuration is used and I don’t see a way to get back to defconf. I even tried netinstall-cli with no -s and it still used the saved config as default config.  
How can I remove the saved custom-script?

---

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [March 19, 2023, 4:00pm UTC](https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299/2 "2023-03-19T16:00:22Z")

</div>

Hmm, I’m not sure the Linux version has the exact same “Apply default configuration” option like the GUI… That’s how you revert this typically.

Did you try a “-r” without the “-s”? The help is a little confusing what should happen, but sounds like it should remove your configuration.

**-r**

> When the reinstallation process is performed, the configuration is reset, and for devices that have it, the default configuration may be applied, which is optional.

---

<div class="post-metadata">

**Author:** ![bp0](https://forum.mikrotik.com/letter_avatar/bp0/32/6_449c533f586939b6e5f246632a46421f.png) [@bp0](https://forum.mikrotik.com/u/bp0)\
**Post date:** [March 19, 2023, 4:11pm UTC](https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299/3 "2023-03-19T16:11:17Z")

</div>

-r was the answer, thanks. It would be nice if it could be done without netinstall, though.

---

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [March 19, 2023, 4:22pm UTC](https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299/4 "2023-03-19T16:22:46Z")

</div>

> [@](#):
>
> -r was the answer, thanks. It would be nice if it could be done without netinstall, though.

Fair enough. But you started with netinstall 😉.

```plaintext
/system/reset-configuration no-defaults=yes keep-users=yes run-after-reset=customscript.rsc

```

does NOT cause it to be saved…

---

<div class="post-metadata">

**Author:** ![txfz](https://forum.mikrotik.com/letter_avatar/txfz/32/6_449c533f586939b6e5f246632a46421f.png) [@txfz](https://forum.mikrotik.com/u/txfz)\
**Post date:** [July 3, 2026, 6:31am UTC](https://forum.mikrotik.com/t/how-to-remove-system-default-configuration-custom-script/165299/5 "2026-07-03T06:31:50Z")

</div>

Still no other way to do this? I don't want to reset configuration, and I don't really want to use Netinstall again; just remove the custom script.

When installing a branding package with a default configuration script (`/system/default-configuration/script`), you may remove that script by installing a branding package without one, but the same is not true for the "custom" script.
