public HttpResponseMessage DeleteFile(string id) { string authorizationString = DecodeAuthorizationString(); SPHelper.SetSharePointCredentials(authorizationString); ListItem item = SPHelper.FindFile(id.ToGuid()); SPHelper.DeleteFile(item); return(new HttpResponseMessage(HttpStatusCode.OK)); }