None of our place records have any useful information, so let's delete them to get ready to finally create the one library that we need. Two things to know when using DELETE are:
A DELETE statement followed by a table name will delete all of the records from that table.
When SurrealDB performs an operation, it returns the result after the operation. So for DELETE, it will return nothing (an empty array).
Here is a quick example that shows this behaviour.
CREATEsome_record; DELETEsome_record;
Response
-------- Query 1 --------
[ { id: some_record:wqewkk86z6qqi18yenhc } ]
-------- Query 2 --------
[]
If you want to return the state before an operation, you can add RETURN BEFORE to the end of a query. This is used often in DELETE statements because it shows which records have been deleted.