Fix bug DNN-3787: delete the user folders if its exists, and sync the folder first so that it can delete all files first.