HasanA soldier who recorded the terror of last year’s deadly shooting rampage at Fort Hood in Texas using his cell phone was ordered by an officer to delete both videos, a military court heard Friday.

Under cross examination, Pfc. Lance Aviles told an Article 32 hearing that his noncommissioned officer ordered him to destroy the two videos on Nov. 5, the same day Major Nidal Hasan unleashed a volley of bullets inside a processing center at the Texas Army post.

The footage could have been used as evidence at the military hearing to decide if Hasan should stand trial in the shootings. The 40-year-old has been charged with 13 counts of premeditated murder and 32 counts of attempted premeditated murder.

Twenty-nine witnesses over three days have appeared either in a courtroom or by video link. Prosecutors have not said whether they’ll seek the death penalty if the case goes to trial.

Aviles described how he was waiting for medical tests at the center with Pfc. Kham Xiong, when he heard a shout and gunshots. He said he saw a tanned, balding man wearing an Army combat uniform and carrying a black pistol. “I saw smoke coming from the pistol,” Aviles told the court.

The pair threw themselves to the floor. Aviles turned to his left to check Xiong and discovered his friend had been shot. Xiong, a 23-year-old father of three from St. Paul, Minn., was among the 13 who died in the attack. Aviles, the 20th person to provide testimony at the hearing, was not hurt.

Hasan had been trying to get out of his pending deployment because he opposed the wars in Iraq and Afghanistan. He had been saying goodbye to friends and neighbors, and had given away his Quran and other belongings.

The Associated Press contributed to this report.