Implemented destroy method for repository_endpoint