I am completely new to the salesforce type of development so please bear with me. As the title says I am trying to figure out how to undeploy/cleanup the target environment. Using the ant script I was able to pull down everything from a dev environment and deployed it successfully to a test environment. However, I also want to have the ability to cleanup this test environment before doing any additional deployments. Following the documentation I created an empty package.xml and a desctructiveChanges.xml file. However unlike the retrieval and deployment process I am unable to get this to work using wildcards. I am able to undeploy objects, pages, apex code if I explicitly reference it in the xml file but using * simply fails. Is it possible to do this or should I explore alternatives? Please keep in mind that deployment is of unpack-aged code.
sample from package.xml for deployment (succeeds)
<type>
<members>*</members>
<names>CustomObject</names>
</type>
sample from desctructiveChanges.xml (fails)
<type>
<members>*</members>
<names>CustomObject</names>
</type>