---
title: "rm: Argument list too long"
date: "2009-09-09"
path: "/43-rm-argument-list-too-long.html"
section: "/ramblings"
aliases:
  - "/43"
  - "/43-rm-argument-list-too-long"
  - "/43.html"
  - "/ramblings/43-rm-argument-list-too-long.html"
---

Magento is odd... the session directory stores a lot of session files so much so I got a:

```
rm sess*
/bin/rm: Argument list too long.
```

So, that implies there's too many files to delete! The simplest alternative is to then use the following which deletes each file in-turn:

```
find . -name 'sess*' -print0 | xargs -0 rm
```
