Skip to content

Instantly share code, notes, and snippets.

@wcandillon
Created April 2, 2017 18:55
Show Gist options
  • Save wcandillon/7e8dba779233e1c34283150b982ce30e to your computer and use it in GitHub Desktop.
Save wcandillon/7e8dba779233e1c34283150b982ce30e to your computer and use it in GitHub Desktop.
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