--- 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.

Sintaxe

formData.delete(name);

Parametros

name
O name da chave que desejas apagar.

Retorna

Void.

Exemplo

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

Specificasões Status Comment
{{SpecName('XMLHttpRequest','#dom-formdata-delete','delete()')}} {{Spec2('XMLHttpRequest')}}  

Compatibilidade do Browser 

{{CompatibilityTable}}
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}}

Veja Tambem