Is it possible to delete an SObject by knowing only Id?
Here is what I found:
Id del = '003S00000099999'; // whatever ID you are deleting Contact ct = new Contact(Id = del); delete ct;
So, is it safe to always use a standard object like the Contact or maybe Account to delete records by knowing only Id? Or are there better ways of accomplishing this?
Just checked. The approach of using Contact does not work.