--- title: FormData.delete() slug: Web/API/FormData/delete translation_of: Web/API/FormData/delete ---
{{APIRef("XMLHttpRequest")}}
O metodo delete()
da interface {{domxref("FormData")}} deleta uma chave/valor pares do Objecto FormData
.
Nota: Este metodo esta Disponivel em Web Workers.
formData.delete(name);
name
Void.
Esta linha cria um objecto FormData
vazio e subistitui com a chave/valor pares de form:
var formData = new FormData(myForm);
Podes deletar chave/valor pares usando delete()
:
formData.delete('username');
Specificasões | Status | Comment |
---|---|---|
{{SpecName('XMLHttpRequest','#dom-formdata-delete','delete()')}} | {{Spec2('XMLHttpRequest')}} |
Carracteristicas | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Suporte Basico | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("39.0")}} | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatNo}} |
Disponivel em Web Workes | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("39.0")}} | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatNo}} |
Caracteristicas | Android | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Suporte Basico | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatNo}} |
{{CompatVersionUnknown}} |
{{CompatNo}} |
Disponivel em web workers | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatNo}} | {{CompatVersionUnknown}} | {{CompatNo}} |