Trash is a shell feature. Unless a program explicitly "moves to trash", deleting is final. Same for Word documents.
So, no, there is no undo in general. There could be under certain circumstances for certain things.
So, no, there is no undo in general. There could be under certain circumstances for certain things.
[1]: https://github.com/arsenetar/send2trash (random find, not mine)
May just trash some extra files due to a fuzzy prompt, may go full psychotic and decide to self destruct while looping "I've been a bad Claude" and intentionally delete everything or the partitions to "limit the damage".
Wacky fun