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
Shishir VKShishir VK 

Delete DashboardComponents using API

Hi All,

 

Iam trying to delete the dashboard-components using a Client API application developed in Java.

 

But I can see that the Class DashboardComponent doesn't extend the Class Metadata, hence I am not able to delete them from the Environment. The Class DashboardComponent just implements the interface: "Serializable".

 

Can you please suggest how can I delete these dashboard components using the Java API?

 

Its quite urgent.

 

Thanks in advance.

Shishir

dkadordkador

I think what you need to do is specify the whole Dashboard object.  Are you using the CRUD based metadata API or the file-based metadata API?  This kind of thing should be much easier with the latter.