Add drop repository function