public function deleteClassProperty(\core_kernel_classes_Property $property)
    {
        $indexes = $property->getPropertyValues(new \core_kernel_classes_Property(OntologyIndex::PROPERTY_INDEX));

        //delete property and the existing values of this property
        if ($returnValue = $property->delete(true)) {
            //delete index linked to the property
            foreach ($indexes as $indexUri) {
                $index = new \core_kernel_classes_Resource($indexUri);
                $returnValue = $this->deletePropertyIndex($index);
            }
        }

        return $returnValue;
    }