PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.1Kb
Man Pages (Zip) - 402.3Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0
You can use theremove() method to delete some or all documents from a collection in a schema. The X DevAPI provides additional methods for use with theremove() method to filter and sort the documents to be removed.
The following example passes a search condition to theremove() method. All documents matching the condition are removed from thecountryinfo collection. In this example, one document matches the condition.
mysql-js> db.countryinfo.remove("Code = 'SEA'") To remove the first document in thecountryinfo collection, use thelimit() method with a value of 1.
mysql-js> db.countryinfo.remove("true").limit(1) The following example removes the last document in thecountryinfo collection by country name.
mysql-js> db.countryinfo.remove("true").sort(["Name desc"]).limit(1) You can remove all documents in a collection. To do so, use theremove("true") method without specifying a search condition.
Use care when you remove documents without specifying a search condition. This action deletes all documents from the collection.
Alternatively, use thedb.drop_collection('countryinfo') operation to delete thecountryinfo collection.
SeeCollectionRemoveFunction for the full syntax definition.
SeeSection 22.3.2, “Download and Import world_x Database” for instructions to recreate the
world_xschema.
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.1Kb
Man Pages (Zip) - 402.3Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0