Delete Record/Request
 
Purpose 
Deletes the current record or find request.
See also 
Format 
Delete Record/Request [No dialog]
Options 
Perform without dialog prevents the deletion confirmation dialog box from displaying when the script step executes.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Partial 
FileMaker Go 
Yes 
Custom Web Publishing 
Partial 
FileMaker WebDirect 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
In Browse mode, this script step deletes the current record. In Find mode, it deletes the current find request.
 
Make sure that the record you want to delete is active (use navigation script steps), and then use Delete Record/Request. If the current layout contains a portal, click anywhere on the record outside of the portal to make sure that no related record is selected, then use Delete Record/Request.
Make sure that the find request you want to delete is active (use navigation script steps), and then use Delete Record/Request.
Important  You cannot undo a Delete Record/Request script step.
Example 1 
Goes to a related record and asks if the user wants to delete it.
Go to Related Record [From table: "Products"; Using layout: “Product Details”]
Delete Record/Request [ ]
Example 2 
Displays a custom dialog to ask if the user wants to delete the current product.
Show Custom Dialog ["Do you want to delete " & Products::Name & "?"]
If [Get ( LastMessageChoice ) = 1]
Delete Record/Request [No dialog]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)