Delete a document from subcollection in Firestore with node.js

Delete a document from subcollection in Firestore with node.js

I'd like to remove a document from Firebase sub-collection. I'm trying to do this in the following way:
firestore.collection('categories').doc(categoryId).collection('books').doc(bookId).delete();

And it doesn't work.
However, I'm able 
Read more