Reassigned licence to device

Changes:
- clear all assigned licence to device after send form.

Without this change the trash icon doesn't work correctly.

@xliiv @quamilek please review.