Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (15 sloc) 0.41 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/env perl
use strict;
use warnings;
use Dancer qw/:syntax/;
use FindBin;
use Cwd qw/realpath/;
use lib "$FindBin::Bin/../lib";
use Biopay::Transaction;
use Dancer::Plugin::CouchDB;

Dancer::Config::setting('appdir',realpath("$FindBin::Bin/.."));
Dancer::Config::load();

for my $txn (@{ Biopay::Transaction->All }) {
    print "Removing " . $txn->txn_id, "\n";
    couchdb->remove_doc($txn)->recv;
}
Something went wrong with that request. Please try again.