Destruct function code snippet