Complete delete function.