diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 3d41c4c..934498c 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -41,10 +41,15 @@
 #include "photos-remote-display-manager.h"
 #include "photos-search-context.h"
 #include "photos-selection-controller.h"
+#include "photos-base-item.h"
+#include "photos-base-manager.h"
+#include "photos-delete-notification.h"
 
 
 struct _PhotosMainToolbarPrivate
 {
+  GtkTreeModel *model;
+  GtkWidget *trash_button;
   GAction *search;
   GCancellable *loader_cancellable;
   GSimpleAction *gear_menu;
@@ -56,6 +61,7 @@ struct _PhotosMainToolbarPrivate
   GtkWidget *selection_button;
   GtkWidget *selection_menu;
   GtkWidget *toolbar;
+  GtkTreePath *current_path;
   PhotosBaseManager *item_mngr;
   PhotosModeController *mode_cntrlr;
   PhotosRemoteDisplayManager *remote_mngr;
@@ -445,6 +451,53 @@ photos_main_toolbar_done_button_clicked (PhotosMainToolbar *self)
 }
 
 
+
+static void
+photos_main_toolbar_set_active_path (PhotosMainToolbar *self)
+{
+  
+  GtkTreeIter child_iter;
+  GtkTreeIter iter;
+  GtkTreeModel *child_model;
+  PhotosBaseItem *item;
+  gchar *id;
+
+  if (!gtk_tree_model_get_iter (self->priv->model, &iter, self->priv->current_path))
+    return;
+
+  gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (self->priv->model), &child_iter, &iter);
+  child_model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (self->priv->model));
+  gtk_tree_model_get (child_model, &child_iter, PHOTOS_VIEW_MODEL_URN, &id, -1);
+
+  item = PHOTOS_BASE_ITEM (photos_base_manager_get_object_by_id (self->priv->item_mngr, id));
+  photos_base_manager_set_active_object (self->priv->item_mngr, G_OBJECT (item));
+
+  g_free (id);
+}
+
+static void
+photos_main_toolbar_trash_button_clicked (PhotosMainToolbar *self)
+{
+  PhotosBaseItem *item;
+  GList *items = NULL;
+  
+  item = PHOTOS_BASE_ITEM (photos_base_manager_get_active_object(self->priv->item_mngr));
+  items = g_list_prepend (items, g_object_ref (item));
+  photos_base_manager_remove_object (self->priv->item_mngr, G_OBJECT (item));
+  photos_delete_notification_new (items);
+  gtk_tree_path_next (self->priv->current_path);
+  photos_main_toolbar_set_active_path (self);
+
+//  g_signal_emit (self, signals[ACTIVATED], 0, self->priv->action);
+
+  
+
+  g_list_free_full (items, g_object_unref);
+}
+
+
+
+
 static void
 photos_main_toolbar_favorite_button_clicked (PhotosMainToolbar *self)
 {
@@ -618,6 +671,13 @@ photos_main_toolbar_populate_for_preview (PhotosMainToolbar *self)
                            G_CALLBACK (photos_main_toolbar_item_active_changed),
                            self,
                            G_CONNECT_SWAPPED);
+ priv->trash_button=gtk_button_new_with_label (_("Delete"));
+   gtk_header_bar_pack_end (GTK_HEADER_BAR (priv->toolbar), priv->trash_button);
+   g_signal_connect (priv->trash_button,
+                    "clicked",
+                    G_CALLBACK (photos_main_toolbar_trash_button_clicked),
+                    self); 
+
 }
 
 

