Update delete folder method.