To unshare a given file
With this function, you can stop sharing a file.
unshareFile(file)
unshareFile(nid, string)
void
unshareFile(myFile)
To unshare a given file.
Result: Stops the sharing of the file saved in the Invoice field.
unshareFile(record, fileName)
To unshare a file or attachment of a given record.
Result: Stops the sharing of the Invoice-001.pdf file of the current record.
shareFile
, which returns a URL of a specific file.