Closed YouSour closed 9 years ago
You can read CollectionFS docs.
Using example in meteor-autoform-file you can do it like this:
var pictureId = Posts.findOne().picture;
Images.remove(pictureId);
hi , could you give example more clearly ? here example code i want :
'click .remove': function () { // remove file image },
Images = new FS.Collection('images', { stores: [new FS.Store.GridFS("images", {})] });
Images.allow({ insert: function (userId, doc) { return true; }, download: function (userId) { return true; }, remove: function (userId) { return true; } });
hi , i'm new here , how can i remove data in database ? thank you for advance .