You'll add the confirm on the draggable instead, reverting if the confirm was not confirmed etc :
$(".contentItem").draggable({
revert : function(event, ui) {
var state = confirm("Are you sure you want to delete?");
if (state) $(this).remove();
return !state;
}
});