Disable the folder if it is going to be removed.