deleterecord
Deleterecord removes a record from the database.

To delete a record via de Axiell WebAPI, you have to know the record number (priref) of the record you want to delete. This priref can be obtained by searching for the desired record first, in any of the different ways described elsewhere in this documentation. We recommend using the POST method in software of your own making to delete records, but deleting a record using the GET method through a URL is possible too.

Syntax
command=deleterecord&<parameter>=<value>&...
database (String) name of the database configuration from which the record must be deleted. The name of this database table must have been specified in the adlibweb.xml file.
priref (Integer) priref (record number) of record to delete.
output
(String)
[optional] output format to be returned. Values for output
can be either json
or xml
(xml
is the default, so you don't need to specify that explicitly). However, the output format produced by jQuery applications is always JSON, so you don't need to specify the output type there either.
Read more about JSON output here.
callback
(String)
[optional] returns JSON output wrapped in brackets with your callback function name, for AJAX requests: <callback function name>( <JSON output> ); You don't need to specify output=json
, because the output format is JSON by default.
Examples
Delete a record.
If the record to be deleted doesn't exist, you'll receive an Adlib.Database.DatabaseRecordNotFoundException.
https://webapi.axiell.com/demowebapi/wwwopac.ashx?database=externalobjects&command=deleterecord&priref=10000049