feat(API): Add safety to unit deletion