implemented a function delete users.