Index: boxes.module
===================================================================
--- boxes.module  (revision 31)
+++ boxes.module  (working copy)
@@ -301,6 +301,14 @@
     '#attributes' => array('class' => 'boxes-ajax'),
   );
 
+  if(!$box->new) {
+    $form['delete'] = array(
+      '#type' => 'submit',
+      '#value' => t('Delete'),
+      '#attributes' => array('class' => 'boxes-ajax'),
+    );
+  }
+
   if (!empty($form_state['custom_action'])) {
     $form['#action'] = url($_GET['q'], array('query' => array(
       'boxes_delta' => $box->delta,
@@ -317,11 +325,21 @@
 function boxes_box_form_submit($form, $form_state) {
   $box = boxes_factory($form_state['values']['plugin_key'], $form_state['values']);
 
-  if (module_exists('spaces') && $space = spaces_get_space()) {
-    $space->controllers->boxes->set($box->delta, $box);
+  if($form_state['values']['op'] == 'Delete') {
+    if (module_exists('spaces') && $space = spaces_get_space()) {
+      $space->controllers->boxes->del($box->delta);
+    }
+    else {
+      $box->delete();
+    }
   }
   else {
-    $box->save();
+    if (module_exists('spaces') && $space = spaces_get_space()) {
+      $space->controllers->boxes->set($box->delta, $box);
+    }
+    else {
+      $box->save();
+    }
   }
 }

