Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to delete custom object programmatically?

    Tagged: Metadata API, Salesforce Apex, Salesforce Custom Object, Salesforce SOQL

    • Salesforce® Discussions

      How to delete custom object programmatically?

      Posted by Hazel on April 22, 2016 at 12:30 PM

      Please explain how to delete custom object programmatically?

      shariq replied 8 years ago 4 Members · 3 Replies
      • Metadata API
      • Salesforce Apex
      • Salesforce Custom Object
      • Salesforce SOQL
    • 3 Replies
    • Ajit

      Member
      April 25, 2016 at 7:30 AM

      We can not delete custom object using apex, bit if you want to delete a custom object we have to use Meta Data api.

    • [adinserter block='9']
    • Parul

      Member
      September 17, 2018 at 10:28 AM

      Hi Hajel

      We can't delete a custom Object.Instead we delete a record of custom Object.For perform deletion of Custom Object we have to use Metadata API

      Thanks

    • shariq

      Member
      September 17, 2018 at 10:56 AM

      Hi,

      Use the CRUD-based metadata calls to create, update, or delete setup and configuration components for your organization or application. These configuration components include custom objects, custom fields, and other configuration metadata. The metadata calls mimic the behavior in the Salesforce user interface for creating, updating, or deleting components. Whatever rules apply there also apply to these calls.

      Metadata calls are different from the core, synchronous API calls in the following ways:Metadata API calls are available in a separate WSDL. To download the WSDL, log into Salesforce, from Setup, enter APIin the Quick Find box, then select API and click the Download Metadata WSDL link.
      After logging in, you must send Metadata API calls to the Metadata API endpoint, which has a different URL than the SOAP API. Retrieve the metadataServerUrl from the LoginResult returned by your SOAP API login() call. For more information about the SOAP API, see the SOAP API Developer Guide.
      Metadata calls are either synchronous or asynchronous. CRUD calls are synchronous in API version 30.0 and later, and similar to the API core calls the results are returned in a single call. In earlier API versions, create, update, and delete are only asynchronous, which means that the results are not immediately returned in one call.
      There are synchronous metadata calls that map to the corresponding core SOAP API synchronous calls.createMetadata() maps to the create() SOAP API call.
      updateMetadata() maps to the update() SOAP API call.
      deleteMetadata() maps to the delete() SOAP API call.

      Hope this helps!

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Salesforce Opportunities vs. Leads in 2024

    Blog in Salesforce

    Salesforce Opportunities and Leads serve different roles in the sales process. Opportunities and Leads are the two terms most often used interchangeably by newcomers. However,…

    Lead Conversion Process Salesforce, Lead Management Salesforce, Leads in Salesforce, Opportunities in Salesforce, Opportunity Management Salesforce
    SP Oct 1, 2024
    616  Views

    How to Reduce Project's Cost with Business Analysis | Salesforce Business Analyst Guide

    Blog in Salesforce

    ❛Without BA, you risk returning to the starting point and adding to that a significant loss of time and financial resources❜ Why are business analysis…

    BA, BA Services, Beta Testing, Business Analysis, Business Challenge
    Twistellar Jul 20, 2022
    2,737  Views

    How Businesses Can Take Benefits of Salesforce to Improve Marketing Efforts?

    Blog in Salesforce Cloud Platform

    Salesforce is the world’s number one CRM provider with an illustrious range of products. One of the most important products among all is Salesforce Marketing…

    Artificial Intelligence, Automated Tasks, Automation, Business Users, communities
    Fexle Services Sep 8, 2022
    3,485  Views

    Popular Salesforce Videos

    Pardot Segmentation Lists | Pardot Tutorial | Salesforce Lightning Tutorial

    Pardot Segmentation Lists | Pardot Tutorial | Salesforce Lightning Tutorial

    Video in Salesforce Products, Lightning

    Pardot Segmentation Lists. This video will cover the following points - 1. Types of Segmentation Lists (0:16) Take a look at the different types of…

    Salesforce Training, Salesforce Tutorial, Salesforce Lightning, salesforce, Salesforce Admin
    Algoworks Jul 15, 2022
    2,467  Views
    How I Really Feel About Salesforce

    How I Really Feel About Salesforce

    Video in Salesforce Stories

    A deep dive into the state of the Salesforce industry in 2021, such as: - Is Salesforce going to crash in the foreseeable future? -…

    Salesforce Training, salesforce, Salesforce Industry, Salesforce Video, Salesforce Learning
    Nauman Aug 31, 2021
    2,525  Views
    How To Log Cases In Salesforce (Email-to-Case) | Salesforce Tutorial

    How To Log Cases In Salesforce (Email-to-Case) | Salesforce Tutorial

    Video in Salesforce Training

    How to log cases in Salesforce (Email-to-Case). In this video, the following points will be covered - 1. Enable Email-To-Case Get a brief introduction on…

    Salesforce Training, Salesforce Tutorial, Email Templates, Salesforce Video, email to case
    Algoworks Aug 9, 2021
    2,719  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.