export default async function deleteCode(id: string): Promise<DeleteScope> {
  return { data: await Code.findOneAndDelete({ _id: id }) }
}