'Remove tags from a file.'

@convert_error(IOError, error)
@loadfile(writable=True)
def delete(self, filething):

    fileobj = filething.fileobj
    data = _APEv2Data(fileobj)
    if ((data.start is not None) and (data.size is not None)):
        delete_bytes(fileobj, (data.end - data.start), data.start)
    self.clear()
