Clean oc_account table from errouneous users

Hello,
Using 18.0.0.2 on ubuntu 18.04 with apache2.

I have setup ldap users, but due to an error on the user ou, I have imported 10k accounts in the oc_account table. Most of theese users are old users that have nothing to do there.

Can I delete these entries safely from the oc_account table dircectly on the mysql server ?
(I can get the erroneous users by looking on the uid column).

Thanks in Advance,

Fred