logo
TinyDB - MCQ(Quiz)
What is the syntax for deleting a document from a TinyDB database based on specific criteria?
A)  deleteDocument({field1: value1})
B)  deleteDocuments({field1: value1})
C)  removeDocument({field1: value1})
D)  removeDocuments({field1: value1})

Correct Answer :   removeDocuments({field1: value1})


Explanation : To delete a document from a TinyDB database based on a specific criteria, developers can use the removeDocuments() function and pass in a dictionary object containing the search criteria.