Web APIs
FormData.delete()
Remove every entry with this name. Example console output: 0.
Formal Syntax & Structure
javascript syntaxjavascript
data.delete(name)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | string | Field name. |
Return Value
undefined
No result value.
Working Example
Example Snippetjavascript
const data=new FormData(); data.append("tag","a"); data.append("tag","b"); data.delete("tag"); console.log(data.getAll("tag").length);