Hi, has anyone tried to use the file.delete method...
# suitescript
p
Hi, has anyone tried to use the file.delete method successfully?
b
there isn't much more to it than what the example in the docs
Copy code
file.delete({
    id: fileId
});
dont expect to delete a file you don't have permissions for or is used by other records
p
ah maybe this is it
I have tried this on inventory item record and deleting the item i have just added via drag and drop feature and i keep getting an unexpected error.
b
File or inventory item