The way to delete other’s contacts in your iPhone?

Some of us may use the same Apple ID with other people, then their contacts may appear in your iPhone, how to delete them? Settings – email/contacts/calendars –iCloud – turn off the contacts.