# Using Wildcards in rm -r?

**URL:** <https://forum.kirupa.com/t/using-wildcards-in-rm-r/214789>\
**Category:** random\
**Created:** [February 1, 2007, 1:31am UTC](https://forum.kirupa.com/t/using-wildcards-in-rm-r/214789 "2007-02-01T01:31:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Post date:** [February 1, 2007, 1:31am UTC](https://forum.kirupa.com/t/using-wildcards-in-rm-r/214789/1 "2007-02-01T01:31:54Z")

</div>

I’m on OS X and I’m at a loss. I’m trying to remove all .class files in a directory tree. On linux I’d just do

```auto
rm -r *.class

```

But OS X tells me

```auto
rm: *.class: No such file or directory

```
