Created
April 2, 2017 18:55
-
-
Save wcandillon/7e8dba779233e1c34283150b982ce30e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import module namespace fb = "http://wcandillon.io/modules/firebase" at "firebase.jq"; | |
declare variable $token as string external; | |
for $uid in fb:get("users.json", $token) ! keys($$) | |
for $eid in fb:get("users/" || $uid || "/feed.json", $token) ! keys($$) | |
for $uri in ( | |
"feed/" || $eid, | |
"users/" || $uid || "/feed/" || $eid, | |
"comments/" || $eid | |
) | |
return fb:delete($uri); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment