sub DoDeletePage { ... if (-f &GetLockedPageFile($id)) { print Ts('%s can not be deleted because it is locked.', $id); + } + if (!-f &GetPageFile($id)) { + print Ts('%s can not be deleted because it does not exist.', $id); } else { # Must lock because of RC-editing &RequestLock() or die(T('Could not get editing lock')); ....--JuanmaMP