Delete?db=DatabaseName&searchData=xx

Deletes all matching records from the database.

To delete records from a database, use a web browser to link to a URL containing the Delete command (alternately, you may embed a [Delete] tag into a template). Whenever WebDNA receives a Delete command, it immediately searches for all matching records and deletes them from the database.

SQL/ODBC Note: To append new records to the end of an ODBC-compliant table, use the [SQL] context.

Example (normally you would link to a URL or form containing the following information):

http://yourserver.com/xx.tpl?command=Delete&db=SomeDatabase.db&eqNAMEdata=Grant

The database "SomeDatabase.db" opens, and all records whose name field is "Grant" are deleted. The page sent back to the browser will be xx.tpl

Here are some other ways to send the same command:
HTML Source Description
<a href="xx.tpl?command=Delete&db=SomeDatabase.db&eqNAMEdata=Grant">
Hyperlink command
<form method="POST" action="xx.tpl">
<input type="hidden" name="command" value="Delete">
<<input name="eqNAMEdata">
<input type="submit">
</form>
Form-based command

Note: Normally all database file paths are relative to the local template, or if they begin with "/" they are relative to the web server's virtual host root. You may optionally put "^" in front of the file path to indicate the file can be found in a global root folder called "Globals" inside the WebCatalogEngine folder. This global root folder is the same regardless of the virtual host.