     {
         guard
         
-            let firebasePicture:FDatabaseModelPicture = mpich
-    }
-    
-    private func confirmedDeletePicture()
+            let firebasePicture:FDatabaseModelPicture = MPictures.sharedInstance.deletable.first
+        
+        else
+        {
+            return
+        }
+        
+        
+    }
+    
+    private func confirmedDeletePicture(picture:MPicturesItem)
+    {
+        deletePic(
+            pictureId:picture.pictureId,
+            dataLength:picture.size,
+            onError:
+            { (error) in
+                
+                VAlert.message(message:error)
+            })
+        {
+            DispatchQueue.main.async
+            { [weak self] in
+                
+                self?.viewPictures.removeSelected()
+            }
+        }
+    }
+    
+    private func deletePic(pictureId:MPictures.PictureId, dataLength:Int, onError:((String) -> ())?, onSuccess:(() -> ())?)
     {
         guard
             

            
            else
            {
                self?.deleteCompleted(
                    userId:userId,
                    pictureId:pictureId,
                    dataLength:dataLength)
                
                return
            }
            
            VAlert.message(message:errorString)
        }
    }
    
    private func deleteCompleted(userId:String, pictureId:MPictures.PictureId, dataLength:Int)
    {
        let parentUser:String = FDatabase.Parent.user.rawValue
        let propertyPictures:String = FDatabaseModelUser.Property.pictures.rawValue

            DispatchQueue.global(qos:DispatchQoS.QoSClass.background).async
            { [weak self] in
                
                self?.confirmedDeletePicture(picture:deletingPicture)
            }
        }
        
