Delete entire array after printing