"use strict";var util=require("./util"),ptp=require("../.."),onConnected;onConnected=function(e){console.log("Deleting object "+e+"..."),ptp.deleteObject({objectHandle:e,objectFormatCode:0,onSuccess:function(){console.error("Done"),ptp.disconnect()},onFailure:function(){console.error("Failed"),ptp.disconnect()}})},module.exports=function(e,t){require("./connect")({host:e,onConnected:onConnected.bind(this,t)})};