Delete Items:
This Code will help to delete the item in list using REST API for SharePoint.
var SiteUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('ListName')/items('" + courtids + "')";
$.ajax({
url: SiteUrl
method: 'DELETE',
headers: {
'X-RequestDigest': $('#__REQUESTDIGEST').val()
},
async: false,
success: function (data) {
alert("Delete success");
},
error: function (data) {
}
});