<?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 delete an aspect from active model in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141526#M37711</link>
    <description>&lt;P&gt;I would like to know how I can delete an aspect from an active model&lt;/P&gt;&lt;P&gt;I tried to remove all the linked documents but still getting the same error after deleting all the documents cannot delete an aspect from an active model. I need the solution urgent, please&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 12:59:57 GMT</pubDate>
    <dc:creator>MohsenH</dc:creator>
    <dc:date>2021-09-17T12:59:57Z</dc:date>
    <item>
      <title>delete an aspect from active model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141526#M37711</link>
      <description>&lt;P&gt;I would like to know how I can delete an aspect from an active model&lt;/P&gt;&lt;P&gt;I tried to remove all the linked documents but still getting the same error after deleting all the documents cannot delete an aspect from an active model. I need the solution urgent, please&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:59:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141526#M37711</guid>
      <dc:creator>MohsenH</dc:creator>
      <dc:date>2021-09-17T12:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete an aspect from active model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141527#M37712</link>
      <description>&lt;P&gt;The right way is to remove the aspect from any nodes that has the aspect you want to remove. Usually removing the aspects from content/nodes should do. and you should be able to remove the aspect from content model once there are no references of the aspect on any nodes in repo. You don't need to delete the nodes&lt;/P&gt;
&lt;P&gt;Follow the steps and see if it works:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Option 1:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1- Create a webscript (java/js) or use JSConsole to find all the folders/content/nodes and remove the aspects (aspects which you want to remove from the model) from these nodes. A sample js based script can be found here for reference:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/remove-rma-cutoff-aspect-from-record/m-p/295605/highlight/true#M17493" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/remove-rma-cutoff-aspect-from-record/m-p/295605/highlight/true#M17493&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2- Once aspects are removed that are no longer needed from the matching nodes, stop the alfresco and solr severs&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3- Update the content model, deploy the updated model&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4-&amp;nbsp;Delete models from solr server&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;5- Start alfresco and solr.&lt;/P&gt;

&lt;P&gt;&lt;U&gt;Option 2:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1- Create a webscript (java/js) or use JSConsole to find all the folders/content/nodes and remove the aspects (aspects which you want to remove from the model) from these nodes. A sample js based script can be found here for reference:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/remove-rma-cutoff-aspect-from-record/m-p/295605/highlight/true#M17493" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/remove-rma-cutoff-aspect-from-record/m-p/295605/highlight/true#M17493&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2- Once aspects are removed that are no longer needed from the matching nodes, stop the alfresco and solr severs&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3-&amp;nbsp;Delete indexes and models from solr server (may need to do full reindex)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4- Remove the aspect from the model and deploy the updated model (amp, jar, or extension)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5-&amp;nbsp;Start the alfresco and solr servers. It will re-create the indexes&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 15:42:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141527#M37712</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-09-17T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: delete an aspect from active model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141528#M37713</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;for your solution Point1&amp;nbsp;&lt;SPAN&gt;- Create a webscript (java/js) or use JSConsole to find all the folders/content/nodes and remove the aspects (aspects which you want to remove from the model) from these nodes. A sample js based script can be found here for reference:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/remove-rma-cutoff-aspect-from-record/m-p/295605/highlight/true#M17493" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/remove-rma-cutoff-aspect-from-record/m-p...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;would you please tell me how to run the&amp;nbsp; script I am not professional in using putty I opened the content model from web browser and I extracted the model and it extracted zip file with two xmls&amp;nbsp;&lt;BR /&gt;MCCG_ContentModel.xml&lt;BR /&gt;CMM_MCCG_ContentModel_module.xml&lt;/P&gt;&lt;P&gt;I can share the contents if needed&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:01:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141528#M37713</guid>
      <dc:creator>MohsenH</dc:creator>
      <dc:date>2021-09-24T13:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: delete an aspect from active model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141529#M37714</link>
      <description>&lt;P&gt;If you are sure you might have applied the aspect to nodes, you need to take reference from webscript shared, update it as needed to remove the aspect you want to remove. You Can either use the &lt;A href="https://github.com/share-extras/js-console" target="_self" rel="nofollow noopener noreferrer"&gt;JSConsole&lt;/A&gt; add-on :&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=c3JIeVY8Nnk" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=c3JIeVY8Nnk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or Use the webscript extension&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/latest/develop/reference/web-scripts-ref/#file-locations" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/latest/develop/reference/web-scripts-ref/#file-locations&lt;/A&gt; and execute the webscript.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Doc to learn webscripts&lt;/U&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/5.2/develop/repo-ext-points/web-scripts/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/5.2/develop/repo-ext-points/web-scripts/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/webscripts/tutorial/tutorial.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-series-tutorials/webscripts/tutorial/tutorial.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:28:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/delete-an-aspect-from-active-model/m-p/141529#M37714</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-09-24T14:28:47Z</dc:date>
    </item>
  </channel>
</rss>

