You can use Utilities::RemoveRecursive from core/utilities.h