@@ -0,0 +1,1069 @@
+package com.github.thomasridd.flatsy.operations.operators;%0A%0Aimport com.github.thomasridd.flatsy.FlatsyDatabase;%0Aimport com.github.thomasridd.flatsy.FlatsyObject;%0Aimport com.github.thomasridd.flatsy.FlatsyObjectType;%0Aimport org.apache.commons.io.FileUtils;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by thomasridd on 18/08/15.%0A *%0A * Migrate%0A *%0A * Copies the object and contents to a second FlatsyDatabase instance%0A *%0A * Use for backup, partial backup, or%0A *%0A */%0Apublic class Delete implements FlatsyOperator %7B%0A    FlatsyDatabase db;%0A%0A    /**%0A     * Create copy object to an alternate database%0A     *%0A     * @param db any alternate Flatsy database%0A     */%0A    public Delete(FlatsyDatabase db) %7B%0A        this.db = db;%0A    %7D%0A%0A    /**%0A     * Apply the copy operation%0A     *%0A     * @param object to a specific object%0A     */%0A    @Override%0A    public void apply(FlatsyObject object) %7B%0A        if (object.getType() == FlatsyObjectType.Null) %7B return; %7D%0A%0A        object.db.delete(object);%0A    %7D%0A%7D%0A

Delete operation