Rekognition.Client.delete_project(**kwargs)¶Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated with the project. To delete a model, see DeleteProjectVersion.
DeleteProjectis an asynchronous operation. To check if the project is deleted, call DescribeProjects. The project is deleted when the project no longer appears in the response. Be aware that deleting a given project will also delete anyProjectPoliciesassociated with that project.
This operation requires permissions to perform the rekognition:DeleteProject action.
See also: AWS API Documentation
Request Syntax
response = client.delete_project(
ProjectArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the project that you want to delete.
{
'Status': 'CREATING'|'CREATED'|'DELETING'
}
Response Structure
The current status of the delete project operation.
Exceptions
Rekognition.Client.exceptions.ResourceInUseExceptionRekognition.Client.exceptions.ResourceNotFoundExceptionRekognition.Client.exceptions.InvalidParameterExceptionRekognition.Client.exceptions.AccessDeniedExceptionRekognition.Client.exceptions.InternalServerErrorRekognition.Client.exceptions.ThrottlingExceptionRekognition.Client.exceptions.ProvisionedThroughputExceededException