implements a function for deletion of repository