Rekognition / Client / delete_project

delete_project#

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 any ProjectPolicies 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'
)
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.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