SoFunction
Updated on 2025-03-07

C# Delete folders and files to the Recycle Bin Example


using System;
using ;
namespace leaver
{
class Program
{

static void Main(string[] args)
{

("Delete files to the Recycle Bin");
string filepath = "";
(filepath, , );
("Delete file completed");//

("Delete folders to Recycle Bin");
string dirpath = "leaver";
(dirpath, , );
("Delete folder complete");
}
}
}