While he was in Moscow in the spring of 1918, Goloshchyokin decided to first suggest to Yakov Sverdlov that the former Emperor
Nicholas II should be moved to Ekaterinburg, where there was less chance of his being rescued by the anti-Bolshevik
White Army. Sverdlov and Lenin were reluctant to agree because they planned to put the former emperor on
trial in a grand public spectacle, with
Leon Trotsky acting as
Chief Prosecutor, and they suspected that the militant Ekaterinburg Bolsheviks would lynch him instead, but ultimately agreed that the prisoner and his family should pass through Ekaterinburg on the way to Moscow. Upon arrival in Ekaterinburg, the family and their retainers were imprisoned in the
Ipatiev House on the suggestion of
Pyotr Voykov, a member of the Ural Soviet, with
Yakov Yurovsky, a ranking member of the Ekaterinburg
Cheka, appointed as commandant of the Ipatiev House by the decision of the Soviet. Though Yurovsky held direct command on the grounds, overall command was ultimately held by Goloshchyokin as Military Commissar of the Ural Region. In this capacity, he frequently oversaw the dismissal of guardsmen believed too sympathetic to the family and their replacement with more hardened, ruthless Bolshevists. When one of the guards, Ivan Skorokhodov, who was smitten with the
Grand Duchess Maria Nikolaevna, smuggled a birthday cake to the grand duchess for her 19th birthday and was caught fraternizing with the same, Goloshchyokin had him arrested and tightened security. In a special session on 29 June the Ural Soviet met at the Cheka headquarters in the Amerikanskaya Hotel and agreed that the entire
Romanov family should be executed. Goloshchyokin arrived in Moscow on 3 July with a message insisting on the tsar's death. Only seven of the 23 members of the Central Executive Committee were in attendance at the time, three of whom were Lenin, Sverdlov and
Felix Dzerzhinsky, where it was seemingly agreed the tsar should be killed without delay, with the details and preparations being left to the discretion of the Ural Soviet. Yurovsky detailed his interactions with Goloshchyokin in great detail in his memoirs, stating: “In about the middle of July, Filipp told me we had to make preparations for the liquidation in case the [White] front got any closer." On 15 or 16 July, Yurovsky was informed by the Ural Soviet that
Red Army contingents were retreating in all directions, and the executions could not be delayed any longer. A coded telegram seeking final approval was sent by Goloshchyokin and
Georgy Safarov at around 6:00 PM to Lenin and Sverdlov in Moscow, but the lines were down and they could not get a direct connection, leaving them with no choice but to send the telegram on the direct line to Petrograd instead addressed to
Grigory Zinoviev, the head of the
Petrograd Soviet, based in the
Smolny Institute, with a request to forward a copy to Sverdlov in Moscow. Zinoviev duly forwarded the telegraph to Moscow, noting that he had done so by 5:50 PM
Petrograd time. There is no surviving documented record of a final answer from Moscow, although Yurovsky insisted that an order from the Central Executive Committee to move forward signed by Sverdlov had been passed on to him by Goloshchyokin at around 7:00 PM. While Beloborodov and Safarov remained at the local Cheka Headquarters at the Amerikanskaya Hotel nearby, Goloshchyokin arrived personally at the Ipatiev House along with
Peter Ermakov and
Stepan Vaganov as a representative of the Ural Soviet to direct the executions, but did not appear to physically participate in the shooting himself, and instead remained outside with the other guardsmen while Yurovsky personally led the assembled
death squad. Goloshchyokin is said to have nervously paced back and forth along the perimeter palisade erected around the Ipatiev House in an attempt to determine whether anyone could hear what was going on from outside as one of the guardsmen revved the engines of the fiat truck waiting outside to mask the sounds of the gunfire and barking dogs. When it was clear that the gunfire could be discerned even from outside the palisade walls, one of the guards,
Alexei Kabanov, told the killers to cease fire and to use their
bayonets and gun butts. As the corpses were brought out from the house and loaded onto the truck, Goloshchyokin stooped down to examine the corpse of the tsar, murmuring, "So this is the end of the Romanov Dynasty, is it...", to which
Mikhail Kudrin responded: "No, not yet; there is still much work to be done". According to Kudrin, when the body of the
French Bulldog Ortino, "the last pathetic remnant of the Imperial Family", was brought out on the end of a Red Guardsman's bayonet and unceremoniously hurled onto the fiat, Goloshchyokin sneered, "Dogs deserve a dogs death" as he glared at the dead tsar. Goloschyokin climbed into the truck and departed along with Yurovsky, Kudrin, Ermakov, and Vaganov, while Yurovsky's deputy
Nikulin was left in charge of the Ipatiev House. At a telegraph office in Ekaterinburg on 18 July, he caught
Thomas Preston, a diplomat at the British Consulate, attempting to cable Sir
Arthur Balfour in London with the message, "The Tsar Nicholas the Second was shot last night." Goloshchyokin snatched it, and struck out the words of Preston's text with a red pencil, rewriting on the paper, "The hangman Tsar Nicholas was shot last night – a fate he richly deserved." On 19 July, Goloshchyokin announced at the Opera House on Glavny Prospekt that "Nicholas the Bloody" had been shot and his family taken to a secure location. He subsequently oversaw the disposal of the remains along with Yurovsky, while Beloborodov and Nikulin oversaw the ransacking of the Romanov's quarters, with the most valuable items piled into Yurovsky's office and later transported to Moscow in sealed trunks under heavy guard by commissars on Goloshchyokin's instructions, while items deemed of little consequence were stuffed into the stoves and burned. Goloshchyokin was safely evacuated from Ekaterinburg along with most of the other members of the Ural Soviet prior to the arrival of the White Army, who captured Ekaterinburg on 25 July. == Famine in Kazakhstan ==