+ Start a Discussion
timgumtotimgumto 

How do I Delete a Custom Object via API

I'm trying to delete a custom object via the SOAP API.  All I can find is info on deleting the records in the object, but not the object itself.  I'd like to permanently delete the object as well.  I tried the delete method (http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_delete.htm) but this seems to be for deleting records; when I make the call I get the error "MALFORMED_ID". I'm passing in the custom object name (ending in __c), but when I describe the object I don't see an id associated with the object.  I can also confirm that "deletable" is true for this object.  Can someone point me in the right direction?

 

Thanks,

Tim

Best Answer chosen by Admin (Salesforce Developers) 
kibitzerkibitzer

To actually delete a custom object definition, you'll need to use the metadata API http://www.salesforce.com/us/developer/docs/api_meta/index.htm.

 

Allow yourself some learning time on this one. It can take some time and experimentation to become familiar with it.

 

Dan

 

All Answers

kibitzerkibitzer

To actually delete a custom object definition, you'll need to use the metadata API http://www.salesforce.com/us/developer/docs/api_meta/index.htm.

 

Allow yourself some learning time on this one. It can take some time and experimentation to become familiar with it.

 

Dan

 

This was selected as the best answer
timgumtotimgumto

Thanks for the guidance Dan.