Collection Deletion/Truncation
All collection types can be deleted or truncated. In the collection settings tab, you will find information about collections and buttons to perform delete and truncate. Delete drops a collection and all its data and indexes. Truncate will remove all data from a collection but it will keep all its indexes.
To delete or truncate a collection, select Collections on the left-hand side of the GDN window, choose a collection, click on the settings tab, and press delete or truncate.
Collection Settings Information
ID: System-generated ID of the selected collection.
Type: The type of data model of the selected collection.
Status: Current status of the selected collection.
Delete
Use this option to completely delete the selected collection.
Click to open the image in a new tab.
Truncate
Use this option to remove all the documents from the collection but leave the indexes in place.
Click to open the image in a new tab.
Purge
The Dynamo table schema is stored in JSON format. Instead of Truncate, we have the Purge button, but the effect is the same as Delete.
Click to open the image in a new tab.
Conclusion
Managing collection deletion and truncation from the Macrometa GDN console is simple and easy. You can also perform these actions using the appropriate API Endpoints.
Comments
0 comments
Please sign in to leave a comment.