delete

Description

This function runs when a delete request is sent to a RESTlet—usually to delete something, like a NetSuite record.

Returns

The RESTlet returns an HTTP response body as either a string or an Object.

  • You'll get a string if the request Content-Type is 'text/plain'.

  • You'll get an Object if the Content-Type is 'application/json' or 'application/xml'.

Since

Version 2015 Release 2

Parameters
Note:

NetSuite automatically passes requestParams as a JavaScript object to your RESTlet entry point.

Parameter

Type

Required / Optional

Description

Since

requestParams

Object

required, but automatically passed by NetSuite

No matter the content type, NetSuite passes URL parameters as a JavaScript object.

Version 2015 Release 2

Related Topics

General Notices