How to delete a field using GFAPI?

How can I delete fields where its id is “input_0”. For some reason - while trying to create a new field via GFAPI I have created hundred of fields with “input_0”!!! :frowning: