list

aws sagemaker list-models
aws sagemaker list-endpoint-configs
aws sagemaker list-endpoints

delete

for x in $(aws sagemaker list-models | jq ".[][].ModelName" | xargs -isrc echo src); do; aws sagemaker delete-model --model-name  $x ; echo $x; done;
for x in $(aws sagemaker list-endpoint-configs | jq ".[][].EndpointConfigName" | xargs -isrc echo src); do; aws sagemaker delete-endpoint-config --endpoint-config-name  $x ; echo $x; done;
for x in $(aws sagemaker list-endpoints | jq ".[][].EndpointName" | xargs -isrc echo src); do; aws sagemaker delete-endpoint --endpoint-name  $x ; echo $x; done;