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
  • #8549

Closed
Open
Created Jan 08, 2015 by Administrator@rootOwner

Delete and create project with same name via API does not remove files

Created by: jpiulac

Using API v3 via curl to:

  1. delete existing project
  2. create project (using the same name)

Fails to create a new empty project and instead creates a project containing the files from previously deleted project.

I was doing this under a group/namespace and have not tested using default (user) namespace.

steps to reproduce: curl -X DELETE http://gitlabserver.com/api/v3/projects/:id?private_token=:token curl -H "Content-Type:application/json" http://gitlabserver.com/api/v3/projects?private_token=:token -d "{ "name": "$1", "namespace_id": "$2" }"

Assignee
Assign to
Time tracking