Skip to content

Instantly share code, notes, and snippets.

@MksYi
Created August 14, 2018 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MksYi/aecd5a85ffdd3911eedd8311dd01c6e2 to your computer and use it in GitHub Desktop.
Save MksYi/aecd5a85ffdd3911eedd8311dd01c6e2 to your computer and use it in GitHub Desktop.
Firebase 刪除測試
#!/usr/bin/python3
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
cred = credentials.Certificate("stust-game-firebase-adminsdk-z8f9e-565f1cf637.json")
firebase_admin.initialize_app(cred)
db = firestore.client()
# Delete Document
doc_ref = db.collection('Q1', 'DOC1', 'Q2').document('DOC2')
doc_ref.delete()
print('Done')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment