I'm looking for something, preferably a command(s) that can remove all files/directories from a volume without formatting. Usually the volume will have an NTFS filesystem. I'm aware that it would take time to enumerate everything before deletion, which might take some time depending on the amount to deleted. And I would need to be able to force delete/override protected directories, preferably without confirmation. Like C:\Windows, System Volume Information, etc. If possible, I would also like to be able to exclude certain things as well. Like via wildcards or whatever.
My reason for needing this is volume encryption, I dont like having to format before restoring from a backup. I want the encryption to be retained. And via this method, the disk/volume signature wouldnt change.
My plan is to try strarc or rsync for file-based backups/restores of encrypted volumes.