cancel
Showing results for 
Search instead for 
Did you mean: 

Delete custom content model

fedorow
Elite Collaborator
Elite Collaborator

Hello!

I must to delete content model. It created by model manager and it is active now. Deactivate returns error:

We couldn't deactivate model ' Model '{http://www.my-domain.com/model/document/1.0}Document' is in use and cannot be deleted or deactivated.'.

Next query returns nothing:

{
  "query": {
    "query": "TYPE:\"dc:whitePaper\"",
    "language": "lucene"
  }
}

The solr was reindexed. Trashcan empty.

How to find out, where content model "is in use"?

Thanks for any advise,

Serge

1 ACCEPTED ANSWER

fedorow
Elite Collaborator
Elite Collaborator

There was not documents with custom type. But it was content with custom aspect. It was found by query:

{
  "query": {
    "query": "ASPECT:\"dc:webable\"",
    "language": "lucene"
  }
}

Custom asspect removed from documents. Custom model was deactivated.

View answer in original post

1 REPLY 1

fedorow
Elite Collaborator
Elite Collaborator

There was not documents with custom type. But it was content with custom aspect. It was found by query:

{
  "query": {
    "query": "ASPECT:\"dc:webable\"",
    "language": "lucene"
  }
}

Custom asspect removed from documents. Custom model was deactivated.