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.
See also: AWS API Documentation
Request Syntax
response = client.delete_script(
ScriptId='string'
)
[REQUIRED]
A unique identifier for the Realtime script to delete. You can use either the script ID or ARN value.
Exceptions
GameLift.Client.exceptions.InvalidRequestException
GameLift.Client.exceptions.UnauthorizedException
GameLift.Client.exceptions.NotFoundException
GameLift.Client.exceptions.TaggingFailedException
GameLift.Client.exceptions.InternalServiceException