# Rm: cannot remove '/var/run/postgresql': Directory not empty

**URL:** <https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046>\
**Category:** Self-hosting\
**Created:** [March 4, 2023, 12:09pm UTC](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046 "2023-03-04T12:09:32Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Blechpirat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blechpirat/32/221370_2.png) [@Blechpirat](https://meta.discourse.org/u/Blechpirat)\
**Post date:** [March 6, 2023, 3:18pm UTC](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046/10 "2023-03-06T15:18:34Z")

</div>

I did a rm -R /var/discourse and followed the [official install](https://meta.discourse.org/t/142537?silent=true) guide as one of the first steps.

> [@pfaffman](#):
>
> You might try changing the volumes to be somewhere other than /var/discourse/shared/standalone

I’ll try that!

---

_[View the full topic](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046)._
