function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rajesh k 10rajesh k 10 

How to delete objects and fields using visualforce page?

Amit_Amit_
Hi Rajesh,

Can you give bit more info on your requirement. is it like from vf page you want to select Object and its related field and based on the selection you want to delete Object or field....this is what you want...?

Regards,
Amit_
Arunkumar RArunkumar R
Hi Rajesh,

You can't delete objects and fields using visualforce page. Because object and fields are stored as a metadata. 

The better solution is Force.com Migration Tool. You can create Destructive file and list out the object or field then delete it.

For more info read the below article,

https://developer.salesforce.com/page/Propagating_Destructive_Changes