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

Example

Sample SOAP request

<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>

Example

Sample SOAP response

<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