{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/PnP/issues/1069","labels_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1069/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1069/comments","events_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1069/events","html_url":"https://github.com/OfficeDev/PnP/issues/1069","id":96800908,"number":1069,"title":"Can't remove content type from list with the Remove-SPOContentTypeFromList PowerShell cmdlet","user":{"login":"laskewitz","id":3766843,"avatar_url":"https://avatars.githubusercontent.com/u/3766843?v=3","gravatar_id":"","url":"https://api.github.com/users/laskewitz","html_url":"https://github.com/laskewitz","followers_url":"https://api.github.com/users/laskewitz/followers","following_url":"https://api.github.com/users/laskewitz/following{/other_user}","gists_url":"https://api.github.com/users/laskewitz/gists{/gist_id}","starred_url":"https://api.github.com/users/laskewitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laskewitz/subscriptions","organizations_url":"https://api.github.com/users/laskewitz/orgs","repos_url":"https://api.github.com/users/laskewitz/repos","events_url":"https://api.github.com/users/laskewitz/events{/privacy}","received_events_url":"https://api.github.com/users/laskewitz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T12:17:37Z","updated_at":"2015-07-29T22:50:01Z","closed_at":null,"body":"In my script I'm trying to remove a content type from a list, but it doesn't work. Look at the screenshots below for more info.\r\n\r\nThis is (a part of) my script:\r\n![ct-item](https://cloud.githubusercontent.com/assets/3766843/8850120/87ee71b0-3145-11e5-978a-4cc4f613f999.png)\r\n\r\nThe content type still shows after running the script:\r\n![ct](https://cloud.githubusercontent.com/assets/3766843/8850132/a7cf815e-3145-11e5-8399-e0f35bac4075.png)\r\n\r\nOff-topic: I use the -DefaultContentType parameter to make all the content types visible at the button New. Is there a more elegant way to to this?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/PnP/issues/comments/126119524","html_url":"https://github.com/OfficeDev/PnP/issues/1069#issuecomment-126119524","issue_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1069","id":126119524,"user":{"login":"erwinvanhunen","id":7666381,"avatar_url":"https://avatars.githubusercontent.com/u/7666381?v=3","gravatar_id":"","url":"https://api.github.com/users/erwinvanhunen","html_url":"https://github.com/erwinvanhunen","followers_url":"https://api.github.com/users/erwinvanhunen/followers","following_url":"https://api.github.com/users/erwinvanhunen/following{/other_user}","gists_url":"https://api.github.com/users/erwinvanhunen/gists{/gist_id}","starred_url":"https://api.github.com/users/erwinvanhunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erwinvanhunen/subscriptions","organizations_url":"https://api.github.com/users/erwinvanhunen/orgs","repos_url":"https://api.github.com/users/erwinvanhunen/repos","events_url":"https://api.github.com/users/erwinvanhunen/events{/privacy}","received_events_url":"https://api.github.com/users/erwinvanhunen/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T22:50:01Z","updated_at":"2015-07-29T22:50:01Z","body":"I'm not able to reproduce this issue. Notice that I use Add-SPOContentTypeToList without the -DefaultContentType parameter.\r\n\r\nRegarding your other question: when I add a CT to a list it by default shows on the new Button. As long as I don't use the -DefaultContentType parameter. The moment I start to use that one things start indeed start to behave a bit strange. I'll dive into that."}}