LookoutforVision / Client / delete_project

delete_project#

LookoutforVision.Client.delete_project(**kwargs)#

Deletes an Amazon Lookout for Vision project.

To delete a project, you must first delete each version of the model associated with the project. To delete a model use the DeleteModel operation.

You also have to delete the dataset(s) associated with the model. For more information, see DeleteDataset. The images referenced by the training and test datasets aren’t deleted.

This operation requires permissions to perform the lookoutvision:DeleteProject operation.

See also: AWS API Documentation

Request Syntax

response = client.delete_project(
    ProjectName='string',
    ClientToken='string'
)
Parameters:
  • ProjectName (string) –

    [REQUIRED]

    The name of the project to delete.

  • ClientToken (string) –

    ClientToken is an idempotency token that ensures a call to DeleteProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from DeleteProject. In this case, safely retry your call to DeleteProject by using the same ClientToken parameter value.

    If you don’t supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project deletion requests. You’ll need to provide your own value for other use cases.

    An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to DeleteProject. An idempotency token is active for 8 hours.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'ProjectArn': 'string'
}

Response Structure

  • (dict) –

    • ProjectArn (string) –

      The Amazon Resource Name (ARN) of the project that was deleted.

Exceptions

  • LookoutforVision.Client.exceptions.AccessDeniedException

  • LookoutforVision.Client.exceptions.InternalServerException

  • LookoutforVision.Client.exceptions.ValidationException

  • LookoutforVision.Client.exceptions.ConflictException

  • LookoutforVision.Client.exceptions.ResourceNotFoundException

  • LookoutforVision.Client.exceptions.ThrottlingException