Receiving a " Constraint violation " error when trying to delete an SCMRepositoryI
search cancel

Receiving a " Constraint violation " error when trying to delete an SCMRepositoryI

book

Article ID: 263793

calendar_today

Updated On:

Products

Rally SaaS

Issue/Introduction

I am getting an error message when trying to delete an SCMRepository objects in Rally with the API

 

 

Cause

The SCMRepository must be empty before deleting it.

Resolution

I was able to successfully delete the repository without the error after I had deleted every changeset and pull request in the Repository first. 

You can do this with a delete call to the changeset endpoint:

https://rally1.rallydev.com/slm/webservice/v2.0/changeset/ObjectID