When we have to implement Delete operation using REST API, we normally use the straightforward method to delete an item or a document. For example, to delete an item from a List, we use the following code. $.ajax({ type: "POST", url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getByTitle('CustomList')/items(2)", headers: { "accept": "application/json; odata=verbose", "X-HTTP-METHOD": "DELETE", "IF-MATCH": "*", "X-RequestDigest": $("#__REQUESTDIGEST").val() }, success: function(data){ alert("Item is deleted!"); }, error: function(error){ alert("Error"); console.log(error); } }); To delete a document from a Library, we use the below code. $.ajax({ type: "POST", url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/getfilebyserverre...