Dynamically remove buttons

How do you dynamically remove buttons ??
thanks

:wink: