Delete index at array in Firestore : <p>I got this data in my document:</p>

<p><a href="https://i.stack.imgur.com/S0tbH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/S0tbH.png" alt="enter image description here"></a></p>

<p>I want to delete index 0. How do I do this? This should do the trick I thought:</p>

<pre><code>    db.collection("data").document("free").updateData(["deleteme.deletemee.0" : FieldValue.delete()]) { (errr) in
        print(errr)
    }
</code></pre>

<p>But the errr prints nil, and nothing is removed. When getting the document I noticed something strange about the data when using this code:</p>

<pre><code>    db.collection("data").document("free").getDocument { (doc, err) in
        guard let _doc = doc,
            doc?.exists ?? false else{ return }
        print(_doc.data())
    }
</code></pre>

<p>This prints out:</p>

<pre><code>["deleteme": {
    deletemee =     (
        1 //this is the value for the key, but where is my key?! :(
    );
}]
</code></pre>

<p>I cannot see the key, where is it? How to delete something at an index in Firestore? Thanks.</p>
