Index: media.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/media/media.module,v
retrieving revision 1.57
diff -u -p -r1.57 media.module
--- media.module	15 Nov 2010 13:13:16 -0000	1.57
+++ media.module	6 Jan 2011 23:21:05 -0000
@@ -978,7 +978,7 @@ function media_element_process(&$element
     '#type' => 'item',
     '#markup' => empty($media) ? '' : drupal_render(media_get_thumbnail_preview($media)),
     '#prefix' => '<div class="preview launcher">',
-    '#suffix' => '</div><a class="launcher" href="#">' . t(media_variable_get('field_select_media_text')) . '</a>',
+    '#suffix' => '</div><a class="launcher" href="#">' . t(media_variable_get('field_select_media_text')) . '</a>'.'<a class="remove" href="#">' . t(media_variable_get('field_remove_media_text')) . ''.'</a>',    
   );
 
   /**
Index: css/media.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/media/css/media.css,v
retrieving revision 1.22
diff -u -p -r1.22 media.css
--- css/media.css	26 Oct 2010 14:55:15 -0000	1.22
+++ css/media.css	6 Jan 2011 23:21:05 -0000
@@ -78,7 +78,9 @@
   display:none;
 }
 
-.media-widget a.launcher {
+
+.media-widget a.launcher,
+.media-widget a.remove {
   -moz-border-radius: 20px 20px 20px 20px;
   background: url("../images/buttons.png") repeat-x scroll 0 0 transparent;
   border-color: #E4E4E4 #D2D2D2 #B4B4B4;
@@ -94,6 +96,11 @@
   text-align: center;
 }
 
+.media-widget a.remove {
+  margin-left: 15px;
+  display: none;
+}
+
 /* @end */
 
 /* @group media item */
Index: includes/media.variables.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/media/includes/media.variables.inc,v
retrieving revision 1.12
diff -u -p -r1.12 media.variables.inc
--- includes/media.variables.inc	26 Oct 2010 13:36:36 -0000	1.12
+++ includes/media.variables.inc	6 Jan 2011 23:21:05 -0000
@@ -125,6 +125,7 @@ function media_variable_default($name = 
       'wysiwyg_allowed_attributes' => array('height', 'width', 'hspace', 'vspace', 'border', 'align', 'style', 'alt', 'title', 'class', 'id'),
 
       'field_select_media_text' => 'Select media',
+      'field_remove_media_text' => 'Remove media',
 
       // Name of the theme to use in media popup dialogs
       'dialog_get_theme_name' => 'seven',
Index: javascript/media.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/media/javascript/media.js,v
retrieving revision 1.5
diff -u -p -r1.5 media.js
--- javascript/media.js	16 Jul 2010 20:42:49 -0000	1.5
+++ javascript/media.js	6 Jan 2011 23:21:05 -0000
@@ -51,6 +51,10 @@ Drupal.behaviors.mediaElement = {
       //options = Drupal.settings.media.fields[this.id];
       var fidField = $('.fid', this);
       var previewField = $('.preview', this);
+      var removeField = $('.remove', this);
+
+      // enable remove button if fid is set
+      if (fidField.val() != 0) removeField.show();
       // When someone clicks the link to pick media (or clicks on an existing thumbnail)
       $('.launcher', this).bind('click', function () {
         // Launch the browser, providing the following callback function
@@ -64,10 +68,22 @@ Drupal.behaviors.mediaElement = {
           fidField.val(mediaFile.fid);
           // Set the preview field HTML
           previewField.html(mediaFile.preview);
+					// Show remove button
+					removeField.show();
         }, globalOptions);
         return false;
       });
 
+      $('.remove', this).bind('click', function () {
+        // Set the value of the filefield fid (hidden).
+        fidField.val(0);
+        // Set the preview field HTML
+        previewField.html('');
+        // Hide remove button
+        removeField.hide();
+        return false;
+      });
+
       $('.media-edit-link', this).bind('click', function () {
         var fid = fidField.val();
         if (fid) {
