My Data in Firestore is looked as
I want to to Delete Math Subject
I use below Code to delete an index
firestore()
.collection('users')
.doc(id)
.update({Subject: firestore.FieldValue.arrayRemove("Math")})
.then(() => {
console.log('Document successfully updated!');
})
.catch(error => {
console.log(error);
});
