Delete custom content model

cancel
Showing results for 
Search instead for 
Did you mean: 
fedorow
Senior Member II

Delete custom content model

Jump to solution

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 Solution

Accepted Solutions
fedorow
Senior Member II

Re: Delete custom content model

Jump to solution

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 solution in original post

1 Reply
fedorow
Senior Member II

Re: Delete custom content model

Jump to solution

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.