def METHOD_NAME(self):
    # Given
    config = DynatraceConfiguration.objects.create(
        base_url="http://test.com", api_key="api_123", environment=self.environment
    )
    # When
    url = reverse(
        "api-v1:environments:integrations-dynatrace-detail",
        args=[self.environment.api_key, config.id],
    )
    res = self.client.delete(url)
    # Then
    assert res.status_code == status.HTTP_204_NO_CONTENT
    #  and
    assert not DynatraceConfiguration.objects.filter(
        environment=self.environment
    ).exists()