概要
var target = new DirectoryInfo( path ); foreach ( var file in target.GetFiles() ) { file.Delete(); } foreach ( var dir in target.GetDirectories() ) { dir.Delete( true ); }
var target = new DirectoryInfo( path ); foreach ( var file in target.GetFiles() ) { file.Delete(); } foreach ( var dir in target.GetDirectories() ) { dir.Delete( true ); }