---
title: "Reduce Heroku Slug Size"
description: "First, install the Heroku Repo plugin:"
canonical: https://oozou.com/til/reduce-heroku-slug-size-113
locale: en
date: 2021-01-06
topic: heroku
---

# Reduce Heroku Slug Size

> First, install the Heroku Repo plugin:

Published: 2021-01-06 · Topic: [heroku](https://oozou.com/til-topics/heroku) ([markdown](https://oozou.com/til-topics/heroku.md))

First, install the [Heroku Repo plugin](https://github.com/heroku/heroku-repo):

```shell
$ heroku plugins:install heroku-repo
```

then run:

```shell
$ heroku repo:gc --app app-name 
$ heroku repo:purge_cache --app app-name
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
