Add the "force" parameter to methods removing property types and vocabularies
The methods:
* DELETE /api/property-types/{code}
* DELETE /api/vocabularies/{code}
should have an optional parameter force
(default setting to false
) which in case of false
- will not remove the given Property Type if exists any item having assigned properties of that type
- will not remove the given Vocabulary if exists any item having assigned concepts from that vocabulary (through properties)
and in case of true
- will remove the given Property Type and all properties of that type (for all items)
- will remove the given Vocabulary and all properties with concepts from that vocabulary (for all items).