GPU- clear variable after use

How do i clear all the variables, that are stored in GPU via cuda programming,after its use, so that memory can be effectively managed