---
name: "mongoc_bulk_operation_remove"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_bulk_operation_remove"
---

# mongoc\_bulk\_operation\_remove(3)

## SYNOPSIS

```
void
mongoc_bulk_operation_remove (mongoc_bulk_operation_t *bulk,
                              const bson_t *selector);
```

Remove documents as part of a bulk operation. This only queues the operation. To execute it, call *mongoc\_bulk\_operation\_execute()*.

This function is superseded by *mongoc\_bulk\_operation\_remove\_one\_with\_opts()* and *mongoc\_bulk\_operation\_remove\_many\_with\_opts()*.

## PARAMETERS

- •

  **bulk**: A *mongoc\_bulk\_operation\_t*.

- •

  **selector**: A *bson\_t*.

## ERRORS

Errors are propagated via *mongoc\_bulk\_operation\_execute()*.

**SEE ALSO:**

```
mongoc_bulk_operation_remove_one()
```

```
mongoc_bulk_operation_remove_one_with_opts()
```

```
mongoc_bulk_operation_remove_many_with_opts()
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
