You need to sign in to do that
Don't have an account?
LeoLi
How can I remove the empty Package with SOAP API?
I'm writing code to deploy and remove my sample package with Metadata API File-Based Calls. The code can works well but I still meet a problem:
Because of I specifiy the fullName in the package.xml file, after the code deployed, there will be a new Package created in the package list.
But after I removed the all of the source code with destructiveChanges.xml file, I noticed that the empty package still be there.
I tried to use other Metadata APIs to enumerate the created package list, but I always fails. Then I checked with the describeMetadata() API, I noticed that only InstalledPackage exists, no metadata type called Package in my DE.
But I still eager to know how could I remove the created package by code? Any one meets the same problem as me?
Because of I specifiy the fullName in the package.xml file, after the code deployed, there will be a new Package created in the package list.
But after I removed the all of the source code with destructiveChanges.xml file, I noticed that the empty package still be there.
I tried to use other Metadata APIs to enumerate the created package list, but I always fails. Then I checked with the describeMetadata() API, I noticed that only InstalledPackage exists, no metadata type called Package in my DE.
But I still eager to know how could I remove the created package by code? Any one meets the same problem as me?
Seems I could not attach these two files here, so I just post the contents of these two files here
Here is the content for the destructiveChanges.xml file And here is the content for the package.xml I package them into a zip file and I use the deploy() File based Metadata API to remove the package that I deployed.
Anything was wrong with the files?
I deloy the package with deploly() API, too, with the fullName specified in the package.xml.
So the code will appear at "Create > Packages" but not the InstalledPackage.