A tenant has the right to evict someone from the flat who is not a tenant – but they should give reasonable notice.
If they think you have been in breach of the tenancy agreement conditions, they could ask the landlord to take action. If they feel their personal safety is threatened by your presence, they could ask the landlord to serve a trespass notice against you (see our Flatting issues page).