# Delete statement · Chromia Docs (concept)

> You can use operators @, @?, @*, @+ to specify cardinality, like for the at-operator.

Source: https://docs.chromia.com/rell/language-features/database/delete/

# Delete statement

You can use operators `@`, `@?`, `@*`, `@+` to specify cardinality, like for the at-operator. A run-time error occurs if
the number of deleted records doesn't match the cardinality.

Rell

```
delete user @ { .name == 'Bob' }; // exactly one
delete user @? { .name == 'Bob' }; // zero or one
delete user @* { .company.name == 'Bad Company' }; // any number
```

Using multiple entities. It's similar to an `update`, where you delete only the objects of the first entity:

Rell

```
delete (u: user, c: company) @ { u.xyz == c.xyz, u.name == 'Bob', c.name == 'Google' };
```

Can specify an arbitrary expression returning an entity, a nullable entity, or a collection of entities:

Rell

```
val u = user @? { .name == 'Bob' };
delete u;
```

[View this page on docs.chromia.com](https://docs.chromia.com/rell/language-features/database/delete/)Content mirrored from the live docs
