public static function delete($sms) { SMS::connectDB(); DB::set('sms'); $res = DB::query("DELETE FROM ozekimessagein WHERE id=?", [$sms->id]); }