Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #7264

Closed
Open
Created Jul 05, 2014 by Administrator@rootOwner

API The delete deploy key removes the key, even if it is used by other projects

Created by: opichon

The delete deploy key API is invoked on a specific project. One would naturally assume that it would follow the same behavior as in the UI: if the key is used by other projects, the key is disabled for the project specified in the API call; if the key i snot used by any other project, then the key is removed altogether.

However it appears that the API call removes the key completely, even if used by other projects.

Is this the intended behavior or is it a bug?

If it is, I'd like to suggest that the API syntax should not include a project id, and that there should be a specific call to remove a key from all projects (e.g. DELETE /keys/:key_id)

Assignee
Assign to
Time tracking