GameLift / Client / delete_script

delete_script#

GameLift.Client.delete_script(**kwargs)#

Deletes a Realtime script. This operation permanently deletes the script record. If script files were uploaded, they are also deleted (files stored in an S3 bucket are not deleted).

To delete a script, specify the script ID. Before deleting a script, be sure to terminate all fleets that are deployed with the script being deleted. Fleet instances periodically check for script updates, and if the script record no longer exists, the instance will go into an error state and be unable to host game sessions.

Learn more

Amazon GameLift Realtime Servers

Related actions

All APIs by task

See also: AWS API Documentation

Request Syntax

response = client.delete_script(
    ScriptId='string'
)
Parameters:

ScriptId (string) –

[REQUIRED]

A unique identifier for the Realtime script to delete. You can use either the script ID or ARN value.

Returns:

None

Exceptions

  • GameLift.Client.exceptions.InvalidRequestException

  • GameLift.Client.exceptions.UnauthorizedException

  • GameLift.Client.exceptions.NotFoundException

  • GameLift.Client.exceptions.TaggingFailedException

  • GameLift.Client.exceptions.InternalServiceException