🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators RestDelete
Created by Stephanie on 2024-06-04 · Last edited by Vale.buyondo on 2026-02-12.

The RestDelete operator is an OCL/EAL command used to issue an HTTP DELETE request to a RESTful service. It is primarily used to instruct a server to remove a specific resource.

Syntax

RestDelete(Url, '','','')

Example

In your MDriven ViewModel or Model actions, the operator is structured as follows:

vResult:=selfVM.RestDelete('https://mdriven.free.beeceptor.com/api/dummy-data','','','')

  • Url: 'https://mdriven.free.beeceptor.com/api/dummy-data'
  • Headers: '' (An empty string is used if no specific authentication or content-type headers are required).
  • Result: The variable (e.g., vResult) that captures the body of the server's response.