Is there a function or api that allows an application to dumb the entire hard drive or selected folders/files from selected hard drive?

The reason for this is dumping is faster than formating or killing files.