Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 7 years, 4 months 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.

    • 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

    application solution

    Popular Salesforce Blogs

    A Comprehensive Guide for Small and Medium Businesses on Data Migration to Salesforce

    Blog in Others

    This article is tailored for businesses that embark on a journey toward digital transformation and navigate the complex path of migrating to the cloud, prompted…

    Custom Objects, Data Analysis, Data Cleaning, Data Cleanup, Data Discrepancies
    Vimera | Andersen Apr 4, 2024
    631  Views

    5 Tips For a Successful Salesforce Implementation

    Blog in Salesforce Implementation

    The Salesforce Customer 360 platform places the customer at the center of everything you do, allowing you to communicate with them more intelligently. However, great…

    Business, Business Interests, Business Needs, Business Objectives, Business Priorities
    Apphienz Jun 25, 2021
    1,925  Views

    Say Hello to CRM: Top Five Benefits of Switching to Salesforce CRM

    Blog in Salesforce

    Customer satisfaction is a prime objective for every business, irrespective of its size. Every business organization strives to excel not only in maximizing profit but…

    Applications, Behavior of Customers, Boost Sales Performance, Business, Business Growth
    Ariztech Jul 1, 2021
    3,960  Views

    Popular Salesforce Videos

    Gear up Marketing Automation with Salesforce Pardot

    Gear up Marketing Automation with Salesforce Pardot

    Video in Marketing, Salesforce Automation

    Salesforce trailblazer Admin group, Nasik with a session on Gear up Marketing Automation with Salesforce Pardot. Pardot is a marketing automation solution that helps companies…

    Salesforce Training, Salesforce Tutorial, salesforce, Marketing Automation, Salesforce Video
    Jogender Jan 7, 2022
    2,456  Views
    The 3 Most Common Challenges Associated With B2b Commerce Cloud Implementations

    The 3 Most Common Challenges Associated With B2b Commerce Cloud Implementations

    Video in Salesforce Cloud Platform

    With growing technology businesses are adapting to the new changes. B2B commerce cloud is one of them. But to implement the B2B commerce cloud is…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Learning, Commerce Cloud
    Cyntexa Jul 21, 2022
    1,664  Views
    Batch Apex In Salesforce | Asynchronous Apex

    Batch Apex In Salesforce | Asynchronous Apex

    Video in Salesforce Apex, Salesforce Training

    Asynchronous Apex 1. Batch Apex 2. How to run Batch Apex class 3. Monitor Batch Apex class 4. Examples 5. Points To Remember Upcoming Video…

    Salesforce Tutorial, Apex Class, salesforce, Salesforce Video, Salesforce Learning
    kanika Aug 3, 2021
    6,046  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.