Possible to make use once codes

I would like to have multiple codes and each code, once used, will be removed from the database. This way, people can’t just give out the code to others and anyone could use the code. Is this possible, and if not, could you update the plugin to make it possible?