avrdude: stk500_recv(): programmer is not responding

I am getting this error on my arduino nano and uno I have taken out the wires and trying to upload the code but this error is occuring

avrdude: stk500_recv(): programmer is not responding