Firebase 删除用户数据扩展是否能够删除已删除用户子集合中的所有文档?
is Firebase delete user data extension capable to delete all documents in deleted user subcollections?
我想试试 Firebase 扩展删除用户数据。
在 Firestore 中说我有这样的路径
users/{uid}/inbox/{messageID}
还有
users/{uid}/posts/{postID}
我的问题是....
Firebase extension delete user data是否可以删除所有用户消息文档,所有用户在Firestore中发布文档?
从here中的文档来看,它似乎只能删除根主集合中具有相同 uid 的文档,仅适用于 Firestore。我说得对吗?
来自您链接的同一文档:
Configuration Parameters:
...
Cloud Firestore delete mode: (Only applicable if you use the Cloud Firestore paths parameter.) How do you want to delete Cloud Firestore documents? To also delete documents in subcollections, set this parameter to recursive
.
安装扩展程序时,您应该看到 parameter 的提示并回答 recursive
:
- param: FIRESTORE_DELETE_MODE
label: Cloud Firestore delete mode
description: >-
(Only applicable if you use the `Cloud Firestore paths` parameter.) How do
you want to delete Cloud Firestore documents? To also delete documents in
subcollections, set this parameter to `recursive`.
type: select
options:
- label: Recursive
value: recursive
- label: Shallow
value: shallow
default: shallow
required: true
我想试试 Firebase 扩展删除用户数据。
在 Firestore 中说我有这样的路径
users/{uid}/inbox/{messageID}
还有
users/{uid}/posts/{postID}
我的问题是....
Firebase extension delete user data是否可以删除所有用户消息文档,所有用户在Firestore中发布文档?
从here中的文档来看,它似乎只能删除根主集合中具有相同 uid 的文档,仅适用于 Firestore。我说得对吗?
来自您链接的同一文档:
Configuration Parameters:
...
Cloud Firestore delete mode: (Only applicable if you use the Cloud Firestore paths parameter.) How do you want to delete Cloud Firestore documents? To also delete documents in subcollections, set this parameter to
recursive
.
安装扩展程序时,您应该看到 parameter 的提示并回答 recursive
:
- param: FIRESTORE_DELETE_MODE
label: Cloud Firestore delete mode
description: >-
(Only applicable if you use the `Cloud Firestore paths` parameter.) How do
you want to delete Cloud Firestore documents? To also delete documents in
subcollections, set this parameter to `recursive`.
type: select
options:
- label: Recursive
value: recursive
- label: Shallow
value: shallow
default: shallow
required: true