clear input correctly on action onDelete