How to remove an element from an array in js [Elements are from mongodb]

mongodb remove all elements from array
mongodb remove array element by index
mongodb remove object from array
mongodb aggregate remove element from array
mongodb pull nested array
mongodb update array element
mongodb remove field
pull not working mongodb