Skip to content
dr.dimitru edited this page Apr 27, 2016 · 7 revisions
unlink(fileRef) [Server]

Unlink file an its subversions from FS. This is low-level method. You shouldn't use it, unless you know what you're doing.

  • fileRef {Object} - Full fileRef object, returned from FilesCollection.findOne().get()
  • Returns {Files} - Current FilesCollection instance
var Images = new FilesCollection({collectionName: 'Images'});
Images.unlink(Images.collection.findOne({}));
Clone this wiki locally