Defines the destroy method