<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Removing a content type with no associated content in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/removing-a-content-type-with-no-associated-content/m-p/142371#M37908</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have updated our "CustomModel.xml" file (under Data Dictionary/Models) and added a new content type.&lt;/P&gt;&lt;P&gt;The content type has been defined having a parent cm:content.&lt;BR /&gt;&lt;BR /&gt;The type name is defined e.g. as "temp:test"&amp;nbsp; and the properties as "temp:tsfield1", "temp:tsfield2" etc.&lt;/P&gt;&lt;P&gt;Now I have also added the properties to the "live-search-docs.get.config.xml" and "search.get.config.xml" files, along with the "share-config-custom.xml" file.&lt;BR /&gt;&lt;BR /&gt;My problem here is that I have named the content type "temp:test" in the "CustomModel.xml" but in the Advanced Search section of the "share-config-custom.xml" I have referred to it as "temp:ts". I had copied from our dev server but had to change the name and changed every instance of "test" to "ts" manually rather than replace all and missed the name,&lt;/P&gt;&lt;P&gt;Now since restarting Tomcat I am unable to revert the "CustomModel.xml" file, even though no files have been created as type "temp:test" or "temp:ts". When I try to change the name to "temp:ts" in the "CustomModel.xml" file I get an error message (translated from German:&lt;BR /&gt;&lt;BR /&gt;Could not save content: 03305533 Failed to validate model update - found deleted TYPE '{&lt;A href="#" target="_self" rel="noopener nofollow noreferrer"&gt;http://alfresco..../model/content/1.0}temp&lt;/A&gt;'&lt;BR /&gt;&lt;BR /&gt;Does anybody have any suggestions on how to fix this or be able to rollback.&lt;BR /&gt;&lt;BR /&gt;No files have been created using the type "temp" and I couldn't find anything under deleted files either.&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 09:16:15 GMT</pubDate>
    <dc:creator>CologneClaret</dc:creator>
    <dc:date>2021-04-30T09:16:15Z</dc:date>
    <item>
      <title>Removing a content type with no associated content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/removing-a-content-type-with-no-associated-content/m-p/142371#M37908</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have updated our "CustomModel.xml" file (under Data Dictionary/Models) and added a new content type.&lt;/P&gt;&lt;P&gt;The content type has been defined having a parent cm:content.&lt;BR /&gt;&lt;BR /&gt;The type name is defined e.g. as "temp:test"&amp;nbsp; and the properties as "temp:tsfield1", "temp:tsfield2" etc.&lt;/P&gt;&lt;P&gt;Now I have also added the properties to the "live-search-docs.get.config.xml" and "search.get.config.xml" files, along with the "share-config-custom.xml" file.&lt;BR /&gt;&lt;BR /&gt;My problem here is that I have named the content type "temp:test" in the "CustomModel.xml" but in the Advanced Search section of the "share-config-custom.xml" I have referred to it as "temp:ts". I had copied from our dev server but had to change the name and changed every instance of "test" to "ts" manually rather than replace all and missed the name,&lt;/P&gt;&lt;P&gt;Now since restarting Tomcat I am unable to revert the "CustomModel.xml" file, even though no files have been created as type "temp:test" or "temp:ts". When I try to change the name to "temp:ts" in the "CustomModel.xml" file I get an error message (translated from German:&lt;BR /&gt;&lt;BR /&gt;Could not save content: 03305533 Failed to validate model update - found deleted TYPE '{&lt;A href="#" target="_self" rel="noopener nofollow noreferrer"&gt;http://alfresco..../model/content/1.0}temp&lt;/A&gt;'&lt;BR /&gt;&lt;BR /&gt;Does anybody have any suggestions on how to fix this or be able to rollback.&lt;BR /&gt;&lt;BR /&gt;No files have been created using the type "temp" and I couldn't find anything under deleted files either.&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 09:16:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/removing-a-content-type-with-no-associated-content/m-p/142371#M37908</guid>
      <dc:creator>CologneClaret</dc:creator>
      <dc:date>2021-04-30T09:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a content type with no associated content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/removing-a-content-type-with-no-associated-content/m-p/142372#M37909</link>
      <description>&lt;P&gt;Do the following and see if it works:&lt;/P&gt;
&lt;P&gt;1- Revert the model to its original state&lt;/P&gt;
&lt;P&gt;2- Delete any content created using the content model and custom type from the repository.&lt;/P&gt;
&lt;P&gt;3- Then deactivate the model and then delete it as you have dynamically added the model in, "&lt;SPAN&gt;Data Dictionary/Models&lt;/SPAN&gt;".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see the docs here:&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/6.0/config/models/&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.0/config/models/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;4- Clear the model and indexes if already had some indexed content. This should cleanup the old model and its dependencies.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5- Once done, add the new updated model.&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 07:39:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/removing-a-content-type-with-no-associated-content/m-p/142372#M37909</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-05-01T07:39:58Z</dc:date>
    </item>
  </channel>
</rss>

