Delete Subcollection
deleteSubcollection
Description: Menghapus sub-koleksi beserta seluruh dokumennya dari Firestore.
Parameters:
subcollectionPath: Path dari sub-koleksi yang ingin dihapus.
Example Call:
const subcollectionPath = 'SubcollectionPath';
try {
const result = await deleteSubcollection(subcollectionPath);
console.log(result);
} catch (error) {
console.log('Error:', error);
}Last updated