Unmanned pharmacy is mainly composed of smart dispensing machine, shared pill box, unmanned delivery vehicle and in-patient drug delivery unit / out-patient drug collection unit / pill box recycling unit / pill box cleaning unit. As per electronic prescription from the doctor, drugs are dispensed to each partition inside the shared pill box. Then, unmanned delivery vehicle will deliver the pill boxes to in-patient drug delivery unit / out-patient drug collection unit. After patient uses up the drugs from the pill box, the pill box can be deposited to the pill box recycling unit. After the standard cleaning process, the pill box will re-use again.