REST API Delete Connection Operation Allows Deletion of Connections in Integrations

If you attempt to delete a connection used in an integration in Oracle Integration Cloud Service, you are prompted with the following message:
You are trying to delete a connection that is used by one or more integrations (integration_name | version_number). First remove the connection from the integrations. Then you can delete the connection. 
However, if you delete a connection using the following curl command, you are not prompted with a message and connection deletion is successful.
curl -k -i -v -X DELETE -u icsdevics111@company.com:password https://pod_name:443/icsapis/v1/connections/TESTSOAP