deleteRecord

reference brazil Updated Sep 10, 2026 1 min read r_DeleteRecord.md
Raw file servicenow.com

Delete a record from the targeted table by supplying its sys_id.

Input fields

An element <sys_id> identifying the sys_id of the record to be retrieved.

Output fields

A <count> element within the deleteRecordResponse parent element indicating the number of records deleted, this will always equal to "1" for deleteRecord.

Sample SOAP messages

Sample SOAP request

XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">   <soapenv:Header/>   <soapenv:Body>      <inc:deleteRecord>         <sys_id>46e18c0fa9fe19810066a0083f76bd56</sys_id>      </inc:deleteRecord>   </soapenv:Body></soapenv:Envelope>

Sample SOAP response

XML
<soapenv:Envelope xmlns:inc="http://www.service-now.com/incident" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">   <soapenv:Header/>   <soapenv:Body>      <deleteRecordResponse>         <count>1</count>      </deleteRecordResponse>   </soapenv:Body></soapenv:Envelope>

Language-specific sample messages

For language-specific deleteRecord samples, refer to the following topics:

Perl SOAP::Lite

Java Apache Axis2

Microsoft .NET

Python

Parent Topic:Data Modification API

Search documentation
Search document titles and file paths on the brazil branch