Would it be better to check if the path exists and then delete it or would this lead to a race condition?