Support file removal and directory removal with polling