delete link with locking