---
title: "Clearing the composer cache"
date: "2022-02-10T05:16:38+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/93431-clearing-composer-cache"
id: "3c2a39a3-2cc4-47f5-a8dd-95ca20ccd0ec"
---

Table of contents will be added

Issue
-----

While using composer, users may experience memory exhaustion issues and/or problems with requested packages not being found.

Resolution
----------

Composer now has a built in function for clearing the cache which can be run using the following:

    ~/composer clear-cache

If clearing the cache doesn’t work correctly or you need to manually clear the cache, this can be done by running the following in the root of your project:

    rm -rf ~/.composer/cache/*

Cause
-----

Composer’s cache works well in that it does help to speed up your composer workflow, however it does tend to get bloated quite quickly.