{"action":"closed","issue":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1758","repository_url":"https://api.github.com/repos/backdrop/backdrop-issues","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1758/labels{/name}","comments_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1758/comments","events_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/1758/events","html_url":"https://github.com/backdrop/backdrop-issues/issues/1758","id":143859156,"number":1758,"title":"Full config import with content type deletion allows for broken content to remain","user":{"login":"alexfinnarn","id":3640707,"avatar_url":"https://avatars.githubusercontent.com/u/3640707?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfinnarn","html_url":"https://github.com/alexfinnarn","followers_url":"https://api.github.com/users/alexfinnarn/followers","following_url":"https://api.github.com/users/alexfinnarn/following{/other_user}","gists_url":"https://api.github.com/users/alexfinnarn/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfinnarn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfinnarn/subscriptions","organizations_url":"https://api.github.com/users/alexfinnarn/orgs","repos_url":"https://api.github.com/users/alexfinnarn/repos","events_url":"https://api.github.com/users/alexfinnarn/events{/privacy}","received_events_url":"https://api.github.com/users/alexfinnarn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/status%20-%20has%20pull%20request","name":"status - has pull request","color":"d4c5f9"},{"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/type%20-%20bug%20report","name":"type - bug report","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/milestones/28","html_url":"https://github.com/backdrop/backdrop-issues/milestones/1.3.6","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/milestones/28/labels","id":1723811,"number":28,"title":"1.3.6","description":"","creator":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":11,"state":"open","created_at":"2016-04-21T20:26:20Z","updated_at":"2016-05-16T02:36:24Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-03-27T23:05:29Z","updated_at":"2016-05-16T02:36:24Z","closed_at":"2016-05-16T02:36:24Z","body":"I searched for an issue like this but didn't find anything. New to filing issues here so forgive me if there is already an open issue. \r\n\r\nWhile messing around with configuration management, I noticed that you can delete a content type that still has published content associated with it. If you've created a new field associated with that content type, you will see an error saying you have to delete the field elsewhere, but if no new fields were created, there is no warning about having orphaned content. \r\n\r\nI think there should at least be a warning that you are deleting a content type that has live content associated with it. I know there are probably a lot of cases where people can jack their site up using CM, but this seems like an simple-ish check to do when deleting a content type through the UI. \r\n\r\nThis also seems like something that could be done in the contrib space using `hook_config_data_validate`?\r\n\r\nTo reproduce:\r\n* Install a new site\r\n* export full config\r\n* add a content type with existing fields\r\n* make new content with that content type\r\n* import export of full config\r\n* see broken content still there"}}