# $pricingRules->remove()

> Removes an object

- Source: `src/Cms/Collection.php#L364` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Collection.php#L364>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$pricingRules->remove(string|TValue $key): Kirby\Cms\Collection
```

## Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `$key` | `string\|TValue` | `–` | the name of the key |

## Return type

`Kirby\Cms\Collection`

## Parent class

`Wagnerwagner\Merx\PricingRules` inherited from `Kirby\Cms\Collection`
