Delete resources to free up memory in messenger