Student activist Elin Ersson protested against the government's policy of deporting some rejected asylum seekers to Afghanistan by boarding the flight one Afghan man was due to be sent home on.

Ersson protested at Gothenburg's Landvetter airport with a group of around 25 other activists, part of the group 'Sittstrejken i Goteborg'. Then, she got on board the plane – the group had already raised money for her ticket – and refused to sit down until the man was let off.

The flight was scheduled to travel to Istanbul, from where the man was set to take another flight to Afghanistan.

"All I want to do is stop the deportation and then I will comply with the rules here. This is all perfectly legal and I have not committed a crime," said Ersson in the video, which has now been watched more than 2 million times on Facebook.

Ersson said the man would "most likely get killed" if forced to return to Afghanistan.

An employee could be heard telling her to sit down and stop filming, and another passenger challenged her and tried to take her phone away. However, others on board the flight supported the student activist, and the reaction on social media has been similarly mixed with many hailing the student a "hero" but others criticizing the method of protest.

Eventually, Ersson was told that the man would be let off the plane and she was also removed by airport security.

News of the protest has been shared worldwide, with coverage in dozens of different languages and praise from politicians and other rights groups.

On Monday evening Ersson said in a Facebook post that she would not be answering any more calls from journalists, adding: "The deportation was stopped, I don't know anything more than that." She did not respond to The Local's request for comment, but told the Guardian that she believes the man was deported from elsewhere in Sweden.

A police press spokesperson told The Local that such protests against deportations were uncommon in Sweden, and added that it would not normally be enough to stop the man's deportation.

"I can't comment on specific cases, but it would usually be postponed to be carried out at another date," she explained.

[embedded content]

In 2017, 9,062 rejected asylum seekers were ordered to leave the country by the Swedish Migration Agency, press officer Pierre Karatzian told The Local. The figure for 2018 so far is 4,292, although this may not reflect the exact number of deportations carried out, since deportations are carried out by the police and may change, for example if new information comes to light or it is not possible for them to return to their home country.

"A person who has received a rejection to their application has the possibility to appeal the decision to the Migration Court and then the Migration Court of Appeal. A person whose decision has come into effect can submit an application about impediments to enforcement," Karatzian added.

The Swedish Foreign Office's official travel advice to residents is to avoid all travel there "due to the security situation", but the Migration Agency maintains that parts of the country, including its capital Kabul, are safe enough for asylum seekers to be returned there.

On Wednesday, the Migration Agency referred The Local to a previous statement on Afghanistan: "The Swedish Migration Agency follows the situation in Afghanistan closely. According to the latest judicial position from the Agency the situation is considered as serious. Our position is that the situation differs from region to region in the country and all applications are being considered individually."

Sweden received 41,564 requests for asylum from Afghan citizens in 2015, 2,969 in 2016, and 1,681 in 2017, according to Migration Agency figures. A total of 1,753 Afghans had their asylum requests granted in 2015, 1,371 and 1,709 requests granted the following two years.

In April this year, a group of rejected asylum seekers including a majority of Afghans broke out of the detention facility where they were being held. This was the biggest such escape in several years.