I can't remove an manage_file field image I have the next managed_file field:

$form['portada_field']['imagen_portada'] = array(
            '#title' =&gt; t('Imagen'),
            '#type' =&gt; 'managed_file',
            '#description' =&gt; t('Extensiones permitidas: gif png jpg jpeg'),
            '#upload_validators' =&gt; array('file_validate_extensions' =&gt; array('jpeg jpg png gif')),
            '#upload_location' =&gt; 'public://articulos/portada',
            '#progress_indicator' =&gt; 'throbber',
            '#status' =&gt; FILE_STATUS_PERMANENT,
            '#progress_message' =&gt; 'One moment while we save your file...',
                '#states' =&gt; array(
                    'visible' =&gt; array(
                      ':input[name="checkbox_imagen"]' =&gt; array('checked' =&gt; TRUE),
                    ),
                ),
         );


After upload an image, If I want to remove the image I can't do it, it appears again

How I can remove it?

Thank you very much.
You can use db query to remove the entry 

  $mydir =  variable_get('file_public_path', conf_path() . '/files');
  $filename = $mydir .$file_directory. $filename;
  unlink($filename);
  db_delete('file_managed')
      -&gt;condition('filename', $filename)
      -&gt;execute();
  $FileStatus = "The file has been removed - ".$filename;


Get the public directory path and delete the file from file_managed table 

This will make your work easy.