

# The destroy event in Amazon Connect Agent Workspace
Destroy event

The destroy event in the Amazon Connect agent workspace will trigger the ` onDestroy` callback configured during `AmazonConnectApp.init()`. The application should use this event to clean up resources and persist data. The agent workspace will wait for the application to respond that it has completed clean up for a period of time.