Mongoose array can set of objects basically a reference to other mongoose document placed in other document. Our task is to clear all element stored in MongoDB array of objects.
To clear we can use pull or simply an assign a blank array (). In our Post example we had tags array.
 will clear all of the tag id in the tags object array