mongoshield erasures
List the GDPR erasure ledger, or apply it to a database.
mongoshield erasures <action> [options]Arguments
Section titled “Arguments”| Argument | Description | |
|---|---|---|
<action> | required | list or apply |
Options
Section titled “Options”| Option | Description |
|---|---|
--from <storage-url> | Where backups are stored: ./dir, file:///abs, s3://bucket/prefix (default: config). |
--since <date> | Only erasures recorded at or after this date. |
--uri <mongodb-uri> | apply: the deployment to clean (default: config source.uri). |
--include <pattern> | Only these namespaces, e.g. app.* or app.users. Repeatable. |
--dry-run | apply: count, delete nothing. |
The global options (--config, --json, --quiet,
--verbose, --no-color, --yes) work here too.
Examples
Section titled “Examples”Show every recorded erasure:
mongoshield erasures listRe-apply the ledger to a database restored by other means:
mongoshield erasures apply --uri $STAGING_URI --include 'app.*'MongoShield is MIT licensed and is not affiliated with, endorsed by or sponsored by MongoDB, Inc. MongoDB is a trademark of MongoDB, Inc.Privacy policy