public function delete($typeId, $status)
{
$this->logger->logCall(__METHOD__, array('type' => $typeId, 'status' => $status));
$return = $this->persistenceHandler->contentTypeHandler()->delete($typeId, $status);
if ($status === Type::STATUS_DEFINED) {
// Clear type cache and all identifier cache (as we don't know the identifier)
$this->cache->clear('contentType', $typeId);
$this->cache->clear('contentType', 'identifier');
$this->cache->clear('searchableFieldMap');
}
return $return;
}