Independentsoft
Home
Purchase
Support
Company
Contact
JGraph
>
Tutorial
> Delete list item
The following example shows you how to delete an item from a SharePoint list.
import com.independentsoft.graph.GraphClient; import com.independentsoft.graph.GraphException; public class Console { public static void main(String[] args) { try { GraphClient client = new GraphClient(); client.setClientId("63333333-209e-454e-b7bd-55a4d201270f"); client.setTenant("independentsoft.onmicrosoft.com"); client.setUsername("info@independentsoft.onmicrosoft.com"); client.setPassword("password"); client.deleteListItem("item-id-123", "list-id-456", "site-id-789"); System.out.println("List item deleted."); } catch (GraphException e) { System.out.println(e.getCode()); System.out.println(e.getMessage()); e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*