Controller
isDelete()
Signature
Section titled “Signature”isDelete() — returns boolean
Available in: controller
Category: Miscellaneous Functions
Description
Section titled “Description”Returns whether the request was a DELETE request or not.
Examples
Section titled “Examples”// 1. Only process delete logic when the request method is DELETE
if (isDelete()) {
// perform delete operation
}
// 2. Assign the result to a variable for later use
requestIsDelete = isDelete();