Refactor to use POSIX check
Silence the "sure you want to delete …" question