Function useDeleteAccessCode