FileTrash results in Disk Error -3092

The first line below gives me the correct path of a file that I would like to trash. (The file ‘attachment.pdf’ is sitting in my home folder.)

The 2nd line gives me an error Disk Error -3092.

Message "File to be trashed: " + HomePath("") + "attachment.pdf"
FileTrash Folder(HomePath("")),"attachment.pdf"

That’s an Apple error code, but I cannot find any documentation of what it is. A google search turns up nothing. Various lists of Apple error codes do not include it, here are a couple of the more complete ones I found.

http://www.cs.cmu.edu/afs/cs/user/lenzo/html/mac_errors.html

https://krypted.com/lists/comprehensive-list-of-mac-os-x-error-codes/

Hey, here’s a list of error codes from 1991!!

https://udcf.gla.ac.uk/~gwm1h/Error_Codes/Sad_Mac_Codes.html