# Cleanup command very long

**URL:** https://meta.discourse.org/t/cleanup-command-very-long/129082
**Category:** Support
**Created:** [9월 20, 2019, 6:15오전 UTC](https://meta.discourse.org/t/cleanup-command-very-long/129082 "2019-09-20T06:15:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![samyrabih](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samyrabih/32/121356_2.png) [@samyrabih](https://meta.discourse.org/u/samyrabih)
#### Post date: [9월 20, 2019, 6:15오전 UTC](https://meta.discourse.org/t/cleanup-command-very-long/129082/1 "2019-09-20T06:15:31Z")

</div>

Hi  
To do maintenance on my Discourse instances, I tried to use

```
./launcher cleanup app

```

command, but it seems to be blocked : I launched the command minutes ago, and nothing happens (and no space is freed on the disk).

(I reproduce the problem on multiple up-to-date instances)

Can the command be very long to execute ?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 20, 2019, 7:15오전 UTC](https://meta.discourse.org/t/cleanup-command-very-long/129082/2 "2019-09-20T07:15:37Z")

</div>

Yes, I can confirm this. Whatever

`./launcher cleanup`

is trying to do, it’s just hanging now @saj

```
root@endoffice-a:/var/discourse# ./launcher cleanup app
^C

```

It looks like we replaced the old [spotify/docker-gc](https://github.com/spotify/docker-gc) with the built in Docker command

`$docker_path system prune -a`

That seems to work fine for me though, _when entered manually_:

```plaintext
root@endoffice-a:/var/discourse# docker system prune -a
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all images without at least one container associated to them
  - all build cache

Are you sure you want to continue? [y/N] y
Deleted Images:
untagged: discourse/base:2.0.20190906-0522
untagged: discourse/base@sha256:8c58bd323c80b464b2634d2aa8c322772d0c7bff3e08eff06cf2b66d37fe623d
deleted: sha256:c60891bfa973940cdc0f2089feae7fa7592c79ea70a752f77f0ece0c8a624806
deleted: sha256:8e3dfaf1cbbdcd69f84cc6384ebd8b32dd41c6d553c5250d865d589cf4e2e559
deleted: sha256:8bd0616c23093aae3b2fd0e9b571390c483c785571007cf42cecb94e96e248c3
deleted: sha256:0331820444cafba1e1637eaf7d739a5c439984322267a4771c1dd1011dc92c3a
deleted: sha256:10f636afbeaf84c0b8794138bfe0d5219b947b3559f8a00a0434ebacd81c2389
deleted: sha256:23d467eef0f254147d8a07f1a1e398c2b5e4a05b43ae1ffd2bb66cdadd8e24d4

Total reclaimed space: 2.874GB
root@endoffice-a:/var/discourse#

```

Hopefully it’s some minor thing regarding BASH code, I dunno.

---

<div class="post-metadata">

### Author: ![saj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saj/32/523935_2.png) [@saj](https://meta.discourse.org/u/saj)
#### Post date: [9월 20, 2019, 7:54오전 UTC](https://meta.discourse.org/t/cleanup-command-very-long/129082/4 "2019-09-20T07:54:06Z")

</div>

Hi @samyrabih,

Sorry about that! This has been [fixed](https://github.com/discourse/discourse_docker/commit/b54cb8ea342e299e65ab543e56f84fc76d4f4270). Please git pull the latest `launcher` and try again.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 20, 2019, 8:17오전 UTC](https://meta.discourse.org/t/cleanup-command-very-long/129082/5 "2019-09-20T08:17:20Z")

</div>

Confirmed! Fix works for me, thanks @saj 🍻

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 20, 2019, 8:17오전 UTC](https://meta.discourse.org/t/cleanup-command-very-long/129082/6 "2019-09-20T08:17:23Z")

</div>


