Description

Issues a HTTP DELETE request to the current resource (i.e. current form action target). If the request is successful the browser page is replaced by either the

  • redirect page, or the
  • parent resource page, when a redirect page is not specified.

Signature

calli.deleteResource( event, [redirect] )

Parameter Description
event HTML click event
redirect (optional) URL to redirect browser to

Example


<button type="button" onclick="calli.deleteResource(event)" class="btn btn-danger">Delete</button>