Open arnavzek opened 4 years ago
They have not updated it according to mongoose and no other method for deleting such as deleteOne, deleteMany are not available. They must update it soon.
If it will help someone, I deleted using this
const bucket = new mongodb.GridFSBucket(conn.db, { bucketName: 'uploads' });
bucket.delete(ObjectId("60edece5e06275bf0463aaf3"));
Gives the following error