Completed remove function