Skip to content

Commit

Permalink
Final fixups before review
Browse files Browse the repository at this point in the history
  • Loading branch information
dacharyc committed Jul 30, 2024
1 parent 421cb78 commit d508012
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
You can only delete live objects. If you are working with a frozen
object, you must query for the live object before deleting the object.

#. Call the :dotnet-sdk:`delete <realm/Realm/delete.html>`
#. Call the :flutter-sdk:`delete <realm/Realm/delete.html>`
method with the object you want to delete as an argument.

#. The specified object is deleted from the database and can no longer be
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can remove keys and values from a :flutter-sdk:`RealmMap
<realm/RealmMap-class.html>`within a write transaction. To remove a key and
<realm/RealmMap-class.html>` within a write transaction. To remove a key and
its associated value, call ``map.remove()``. To remove an element matching
a query, call ``map.removeWhere()``.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
To delete all objects of a given object type from the database, pass
the result of :swift-sdk:`Realm.objects(_:)
<Structs/Realm.html#/s:10RealmSwift0A0V7objectsyAA7ResultsVyxGxmSo0aB6ObjectCRbzlF>`
for the type you wish to delete to :swift-sdk:`Realm.delete(_:)
To delete all objects of a given object type from the database, query for
objects of the type you want to delete, and pass the result to
:swift-sdk:`Realm.delete(_:)
<Structs/Realm.html#/s:10RealmSwift0A0V6deleteyyxSTRzSo13RLMObjectBaseC7ElementRczlF>`
inside of a write transaction.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
1. Open a write transaction with one of the relevant APIs:

- :swift-sdk:`write() <Structs/Realm.html#/s:10RealmSwift0A0V5write16withoutNotifying_xSaySo20RLMNotificationTokenCG_xyKXEtKlF>`
- :swift-sdk:`writeAsync() <Structs/Realm.html#/s:10RealmSwift0A0V10writeAsync_10onCompletes6UInt32Vyyc_ys5Error_pSgcSgtF>`
- :swift-sdk:`asyncWrite() <Structs/Realm.html#/s:10RealmSwift0A0V10asyncWriteyxxyKXEYaKlF>` and friends
Expand Down
2 changes: 1 addition & 1 deletion source/sdk/crud/delete.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Delete Objects and Property Values
==================================

.. meta::
:description: Provide a short description of the consolidated page. This is critical for SEO.
:description: Learn how to delete objects from the database, clear property values, and remove elements from collections.
:keywords: Realm, C++ SDK, Flutter SDK, Kotlin SDK, Java SDK, .NET SDK, Node.js SDK, Swift SDK, code example

.. facet::
Expand Down

0 comments on commit d508012

Please sign in to comment.