{"thread":{"id":"18289","subject":"Deleting a submodule","startedAt":"2009-03-12T17:31:44Z","lastAt":"2009-03-13T08:14:20Z","messageCount":2,"participants":["Pedro Melo","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"107855","messageId":"20BA928D-7133-40E7-AB01-466F509F002C@simplicidade.org","threadId":"18289","inReplyTo":null,"subject":"Deleting a submodule","fromName":"Pedro Melo","fromEmail":"melo@simplicidade.org","sentAt":"2009-03-12T17:31:44Z","receivedAt":"2009-03-12T17:31:44Z","isPatch":false,"sender":{"key":"melo@simplicidade.org","avatar":"https://gravatar.com/avatar/13ddbb01e300285a93aa1e3739653a81f9b1d3438bd03a4ac36b88e4ffeeafc3?d=mp&s=160"},"body":"Hi,\n\nI couldn't find a git-submodule command to delete a submodule. What is  \nthe correct procedure?\n\nI did:\n\n  * removed the entry from .gitmodules;\n  * run git submodule sync\n\nBut its still recorded somewhere.\n\nThanks,\n-- \nPedro Melo\nBlog: http://www.simplicidade.org/notes/\nXMPP ID: melo@simplicidade.org\nUse XMPP!\n"},{"id":"107915","messageId":"81b0412b0903130114j289e7ae1j527e16cd84a892fe@mail.gmail.com","threadId":"18289","inReplyTo":"20BA928D-7133-40E7-AB01-466F509F002C@simplicidade.org","subject":"Re: Deleting a submodule","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-03-13T08:14:20Z","receivedAt":"2009-03-13T08:14:20Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2009/3/12 Pedro Melo <melo@simplicidade.org>:\n> I couldn't find a git-submodule command to delete a submodule. What is the\n> correct procedure?\n>\n> I did:\n>\n>  * removed the entry from .gitmodules;\n>  * run git submodule sync\n>\n> But its still recorded somewhere.\n\ngit rm --cached path/to/submodule\ngit commit -m'Submodule path/to/submodule removed'\n"}]}