Rekognition / Client / delete_project
delete_project¶
- Rekognition.Client.delete_project(**kwargs)¶
Deletes a Amazon Rekognition project. To delete a project you must first delete all models or adapters associated with the project. To delete a model or adapter, 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:DeleteProjectaction.See also: AWS API Documentation
Request Syntax
response = client.delete_project( ProjectArn='string' )
- Parameters:
ProjectArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the project that you want to delete.
- Return type:
dict
- Returns:
Response Syntax
{ 'Status': 'CREATING'|'CREATED'|'DELETING' }
Response Structure
(dict) –
Status (string) –
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