If a jar-file capable archiver program, like e.g. "zip" on Linux, is available, the task can be done by
Subtree deletion depends on the capabilities of the used archiver.
The "os" attribute of the Ant "exec" task allows to use different archivers on different OS's.