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.
DeleteProject
is 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 anyProjectPolicies
associated 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.ResourceInUseException
Rekognition.Client.exceptions.ResourceNotFoundException
Rekognition.Client.exceptions.InvalidParameterException
Rekognition.Client.exceptions.AccessDeniedException
Rekognition.Client.exceptions.InternalServerError
Rekognition.Client.exceptions.ThrottlingException
Rekognition.Client.exceptions.ProvisionedThroughputExceededException