public function removeArtifact($artUid) { try { self::log("Remove Artifact: $artUid"); $artifact = ArtifactPeer::retrieveByPK($artUid); $artifact->delete(); // remove related object (flows) Flow::removeAllRelated($artUid); self::log("Remove Artifact Success!"); } catch (\Exception $e) { self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString()); throw $e; } }