what api/s would i need to use do delete whole branches of the regestry tree.