PI SDK is announced for deprecation but besides I wouldn't know it implements methods on registering or unregistering archive files. I also wasn't able to identify a related property or method inside AF SDK Help.
Probably the best option is using PowerShell Tools for the PI System which come with the PI System Management Tools setup. Please see KB00922 - Collective Management of Archives: Unregister, Copy, Register for an example on the usage for your purpose.
thank you for your response. Yes, i know PISDK is announced as depricated. But since PISDK deals more directly with the archive i feel there is more a chance to find such abilities there. I have took a look to AFSDK and PISDK but also could not find anything. But i thought there possibly was something i don't see. Thenk you for answer. I will do it through remote piartoool this case.