I am writing code that checks for the permission to write to and delete from certain directories. The first is fairly easy. To whit:
FileIOPermission writePermit = new FileIOPermission(FileIOPermissionAccess.Write, _ArchiveHome);
writePermit.Demand();
But, how do I do the same for permission to delete from a given directory?