added support for deleting files non-blocking