# How to cleanly uninstall ondemand

**URL:** <https://discourse.openondemand.org/t/how-to-cleanly-uninstall-ondemand/595>\
**Category:** Get Help\
**Created:** [November 11, 2019, 7:55pm UTC](https://discourse.openondemand.org/t/how-to-cleanly-uninstall-ondemand/595 "2019-11-11T19:55:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsajdak](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/dsajdak/32/44_2.png) [@dsajdak](https://discourse.openondemand.org/u/dsajdak)\
**Post date:** [November 11, 2019, 7:55pm UTC](https://discourse.openondemand.org/t/how-to-cleanly-uninstall-ondemand/595/1 "2019-11-11T19:55:39Z")

</div>

I installed OOD 1.6.20-1 on CentOS 7.7, messed some things up, and wanted to uninstall and reinstall. When I used ‘rpm remove’ for the ondemand rpm, it didn’t remove all the OnDemand folders so I stupidly did it manually. I thought I should, since I wanted a fresh install and wanted to make sure whatever I had messed up previously was gone. However, when I went to reinstall OnDemand, though it appeared to work, the directory /opt/ood/ondemand is missing. Any suggestions on how to cleanly remove and reinstall? I’m certain this is a stupid question so I apologize in advance! 🙂

Thanks,  
Dori

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 12, 2019, 3:41pm UTC](https://discourse.openondemand.org/t/how-to-cleanly-uninstall-ondemand/595/2 "2019-11-12T15:41:37Z")

</div>

Not a silly question at all. There are a lot of RPMs that get installed besides just the `ondemand` rpm like `ondemand-runtime` as an example (that one adds a lot to `/opt/ood`, but isn’t the only one that does).

You probably need to `yum remove ondemand*` to remove all of them. But that’ll remove `ondemand-release-web` (the RPM that enables the repo to begin with) so you’ll have to re-enable that (or [download a copy](https://yum.osc.edu/ondemand/1.6/ondemand-release-web-1.6-4.noarch.rpm) to install) or do like a brute force deletion of all the `yum search ondemand` entries _except_ `ondemand-release-web`.

As an aside to this, I’d suggest trying containers if you’re just hacking around. Like me, just to try this out and confirm your situation I booted up a centos:7 image and got to hacking, installing, uninstalling, `rm -rf` ing. Containers are a great way to play around with the software and not really care if you mess it up because it’s ephemeral. Or if you do get things you can always save it so you have it for later.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![dsajdak](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/dsajdak/32/44_2.png) [@dsajdak](https://discourse.openondemand.org/u/dsajdak)\
**Post date:** [November 14, 2019, 4:54pm UTC](https://discourse.openondemand.org/t/how-to-cleanly-uninstall-ondemand/595/3 "2019-11-14T16:54:30Z")

</div>

@jeff.ohrstrom You are absolutely right I should be using containers! 🙂 In the event anyone else needs this info, a “yum remove ondemand-\*” is what worked for me. Make sure to get that - in there before the \*

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:31pm UTC](https://discourse.openondemand.org/t/how-to-cleanly-uninstall-ondemand/595/4 "2022-05-26T15:31:34Z")

</div>


