Function Trashcan.erase

Erase item from trashcan.

void erase (
  scope ref TrashcanItem item
) @safe;

Throws

WindowsException on Windows when the operation failed. FileException on Posix when could not delete the item. Exception on other errors.