I've got a function wordpress_handle_upload() for uploads files.

$file = $_FILES['attachment_icon-' . $i];
$upload = wp_handle_upload($file, array('test_form' => false));

exactly what is a function for remove a submitted file?

You should use unlink() to remove personal files.

unlink('/path/to/file');