Why am I getting an error message when trying to empty the trash?

when trying to empty trash using your suggested method, i get error message

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

should i continue?

G
Re: when trying to empty trash using your suggested method, i get error message

Are you trying to use a terminal window to execute a command?

Original thread: https://forums.imore.com/threads/why-am-i-getting-an-error-message-when-trying-to-empty-the-trash.312208/